Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7f1356c00ac5
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 60358cdd9e83
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Aug 4, 2019

  1. Copy the full SHA
    60358cd View commit details
Showing with 52 additions and 0 deletions.
  1. +50 −0 pkgs/applications/altcoins/ledger-live-desktop/default.nix
  2. +2 −0 pkgs/top-level/all-packages.nix
50 changes: 50 additions & 0 deletions pkgs/applications/altcoins/ledger-live-desktop/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{ stdenv, fetchurl, makeDesktopItem, makeWrapper, appimage-run }:

stdenv.mkDerivation rec {
pname = "ledger-live-desktop";
version = "1.12.0";

src = fetchurl {
url = "https://github.com/LedgerHQ/${pname}/releases/download/v${version}/${pname}-${version}-linux-x86_64.AppImage";
sha256 = "0sn0ri8kqvy36d6vjwsb0mh54nwic58416m6q5drl1schsn6wyvj";
};

nativeBuildInputs = [ makeWrapper ];
buildInputs = [ appimage-run ];

desktopIcon = fetchurl {
url = "https://raw.githubusercontent.com/LedgerHQ/${pname}/v${version}/build/icon.png";
sha256 = "1mmfaf0yk7xf1kgbs3ka8wsbz1qgh60xj6z91ica1i7lw2qbdd5h";
};

desktopItem = makeDesktopItem {
name = pname;
exec = "${placeholder "out"}/bin/${pname}";
icon = pname;
desktopName = "Ledger Live";
categories = "Utility;";
};

unpackPhase = ":";

installPhase = ''
runHook preInstall
${desktopItem.buildCommand}
install -D $src $out/share/${src.name}
install -Dm -x ${desktopIcon} \
$out/share/icons/hicolor/1024x1024/apps/${pname}.png
makeWrapper ${appimage-run}/bin/appimage-run $out/bin/${pname} \
--add-flags $out/share/${src.name}
runHook postInstall
'';

meta = with stdenv.lib; {
description = "Wallet app for Ledger Nano S and Ledger Blue";
homepage = "https://www.ledger.com/live";
license = licenses.mit;
maintainers = with maintainers; [ thedavidmeister ];
platforms = [ "x86_64-linux" ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -4387,6 +4387,8 @@ in

leatherman = callPackage ../development/libraries/leatherman { };

ledger-live-desktop = callPackage ../applications/altcoins/ledger-live-desktop { };

ledmon = callPackage ../tools/system/ledmon { };

leela = callPackage ../tools/graphics/leela { };