8 pname = "mobilecoin-wallet";
11 url = "https://github.com/mobilecoinofficial/desktop-wallet/releases/download/v${version}/MobileCoin.Wallet-${version}.AppImage";
12 hash = "sha256-UCBQRcGFHMQlLGvChrrMmM0MYv7AZtlkngFK4ptIPU0=";
14 appimageContents = appimageTools.extractType2 { inherit pname version src; };
17 appimageTools.wrapType2 {
18 inherit pname version src;
20 extraPkgs = pkgs: [ pkgs.libsecret ];
22 extraInstallCommands = ''
23 mkdir -p $out/share/${pname}
24 cp -a ${appimageContents}/locales $out/share/${pname}
25 cp -a ${appimageContents}/resources $out/share/${pname}
26 cp -a ${appimageContents}/usr/share/icons $out/share/
28 install -Dm 644 ${appimageContents}/${pname}.desktop -t $out/share/applications/
30 substituteInPlace $out/share/applications/${pname}.desktop \
31 --replace "AppRun" "${pname}"
35 description = "User-friendly desktop wallet with support for transaction history, encrypted contact book, gift codes, and payments";
36 homepage = "https://github.com/mobilecoinofficial/desktop-wallet";
37 license = licenses.gpl3Only;
39 mainProgram = "mobilecoin-wallet";
40 platforms = [ "x86_64-linux" ];