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