Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / blockchains / zecwallet-lite / default.nix
blobe3aad8cb0c5ff0dad558f2c2cecbf9dbeabbef66
1 { lib, fetchurl, appimageTools }:
3 appimageTools.wrapType2 rec {
4   pname = "zecwallet-lite";
5   version = "1.8.8";
7   src = fetchurl {
8     url = "https://github.com/adityapk00/zecwallet-lite/releases/download/v${version}/Zecwallet.Lite-${version}.AppImage";
9     hash = "sha256-6jppP3V7R8tCR5Wv5UWfbWKkAdsgrCjSiO/bbpLNcw4=";
10   };
12   extraInstallCommands =
13     let contents = appimageTools.extract { inherit pname version src; };
14     in ''
15       mv $out/bin/${pname}-${version} $out/bin/${pname}
17       install -m 444 -D ${contents}/zecwallet-lite.desktop -t $out/share/applications
18       substituteInPlace $out/share/applications/zecwallet-lite.desktop \
19         --replace 'Exec=AppRun' "Exec=$out/bin/zecwallet-lite"
20       cp -r ${contents}/usr/share/icons $out/share
21     '';
23   meta = with lib; {
24     description = "A fully featured shielded wallet for Zcash";
25     homepage = "https://www.zecwallet.co/";
26     license = licenses.mit;
27     maintainers = with maintainers; [ colinsane ];
28     platforms = [ "x86_64-linux" ];
29   };