1 { lib, fetchurl, appimageTools }:
4 pname = "firefly-desktop";
7 url = "https://github.com/iotaledger/firefly/releases/download/desktop-${version}/${pname}-${version}.AppImage";
8 sha256 = "sha256-MATMl5eEIauDQpz8/wqIzD7IugPVZ2HJAWCbDM4n+hA=";
10 appimageContents = appimageTools.extractType2 { inherit pname version src; };
12 in appimageTools.wrapType2 {
13 inherit pname version src;
15 extraPkgs = pkgs: (appimageTools.defaultFhsEnvArgs.multiPkgs pkgs) ++ [ pkgs.libsecret ];
17 extraInstallCommands = ''
18 mkdir -p $out/share/applications $out/share/pixmaps
19 mv $out/bin/${pname}-${version} $out/bin/firefly-desktop
20 cp ${appimageContents}/desktop.desktop $out/share/applications/firefly-desktop.desktop
21 substituteInPlace $out/share/applications/firefly-desktop.desktop \
22 --replace 'Exec=AppRun' 'Exec=firefly-desktop' \
23 --replace 'Icon=desktop' 'Icon=firefly-desktop'
24 cp ${appimageContents}/desktop.png $out/share/pixmaps/firefly-desktop.png
28 description = "IOTA's New Wallet";
29 homepage = "https://firefly.iota.org";
30 license = licenses.asl20;
31 maintainers = with maintainers; [ wolfangaukang ];
32 platforms = [ "x86_64-linux" ];
33 mainProgram = "firefly-desktop";