1 { lib, fetchurl, appimageTools }:
4 pname = "mobilecoin-wallet";
6 name = "${pname}-${version}";
8 url = "https://github.com/mobilecoinofficial/desktop-wallet/releases/download/v${version}/MobileCoin-Wallet-${version}.AppImage";
9 sha256 = "sha256-zSTtnKvgcDSiicEDuVK2LN2d8WHiGReYI3XLBmm3Fbo=";
11 appimageContents = appimageTools.extractType2 { inherit name src; };
13 in appimageTools.wrapType2 {
16 extraPkgs = pkgs: (appimageTools.defaultFhsEnvArgs.multiPkgs pkgs) ++ [ pkgs.libsecret ];
18 extraInstallCommands = ''
19 mv $out/bin/${name} $out/bin/${pname}
21 mkdir -p $out/share/${pname}
22 cp -a ${appimageContents}/locales $out/share/${pname}
23 cp -a ${appimageContents}/resources $out/share/${pname}
24 cp -a ${appimageContents}/usr/share/icons $out/share/
26 install -Dm 644 ${appimageContents}/${pname}.desktop -t $out/share/applications/
28 substituteInPlace $out/share/applications/${pname}.desktop \
29 --replace "AppRun" "${pname}"
33 description = "A user-friendly desktop wallet with support for transaction history, encrypted contact book, gift codes, and payments";
34 homepage = "https://github.com/mobilecoinofficial/desktop-wallet";
35 license = licenses.gpl3Only;
36 maintainers = with maintainers; [ wolfangaukang ];
37 platforms = [ "x86_64-linux" ];