3
0
Fork 0
forked from mirrors/nixpkgs

mobilecoin-wallet: init at 1.4.1

This commit is contained in:
P. R. d. O 2021-12-03 14:58:22 -06:00
parent 1fbcb733eb
commit 20c2237f9f
No known key found for this signature in database
GPG key ID: 7B0FF33FF90110C7
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,39 @@
{ lib, fetchurl, appimageTools }:
let
pname = "mobilecoin-wallet";
version = "1.4.1";
name = "${pname}-${version}";
src = fetchurl {
url = "https://github.com/mobilecoinofficial/desktop-wallet/releases/download/v${version}/MobileCoin-Wallet-${version}.AppImage";
sha256 = "sha256-x5frHgkEz77pqSB6YANRtZmCzaK/RxRzMElLu49lxPk=";
};
appimageContents = appimageTools.extractType2 { inherit name src; };
in appimageTools.wrapType2 {
inherit name src;
extraPkgs = pkgs: (appimageTools.defaultFhsEnvArgs.multiPkgs pkgs) ++ [ pkgs.libsecret ];
extraInstallCommands = ''
mv $out/bin/${name} $out/bin/${pname}
mkdir -p $out/share/${pname}
cp -a ${appimageContents}/locales $out/share/${pname}
cp -a ${appimageContents}/resources $out/share/${pname}
cp -a ${appimageContents}/usr/share/icons $out/share/
install -Dm 644 ${appimageContents}/${pname}.desktop -t $out/share/applications/
substituteInPlace $out/share/applications/${pname}.desktop \
--replace "AppRun" "${pname}"
'';
meta = with lib; {
description = "A user-friendly desktop wallet with support for transaction history, encrypted contact book, gift codes, and payments";
homepage = "https://github.com/mobilecoinofficial/desktop-wallet";
license = licenses.gpl3Only;
maintainers = with maintainers; [ wolfangaukang ];
platforms = [ "x86_64-linux" ];
};
}

View file

@ -1845,6 +1845,8 @@ with pkgs;
mdr = callPackage ../tools/misc/mdr { };
mobilecoin-wallet = callPackage ../applications/misc/mobilecoin-wallet { };
mpdevil = callPackage ../applications/audio/mpdevil { };
pacparser = callPackage ../tools/networking/pacparser { };