diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-01-24 01:02:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-24 01:02:07 +0100 |
commit | 635d6e8cfe68fbfe84a1c4548ade01bbc1d5d3dc (patch) | |
tree | b825b8aee2c97f5c1de539b78f52eb35256cdc95 /pkgs | |
parent | 7502596e708f747765a4969b40723549a5a000f6 (diff) | |
parent | 9fed6feac8748e1ea24bf9ec0f272e2cfab2e9ab (diff) |
Merge pull request #144337 from WolfangAukang/firefly
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/applications/misc/firefly-desktop/default.nix | 34 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/applications/misc/firefly-desktop/default.nix b/pkgs/applications/misc/firefly-desktop/default.nix new file mode 100644 index 0000000000000..2ae01332b9fa5 --- /dev/null +++ b/pkgs/applications/misc/firefly-desktop/default.nix @@ -0,0 +1,34 @@ +{ lib, fetchurl, appimageTools }: + +let + pname = "firefly-desktop"; + version = "1.2.0"; + src = fetchurl { + url = "https://github.com/iotaledger/firefly/releases/download/desktop-${version}/${pname}-${version}.AppImage"; + sha256 = "f3162efcf0407614fd1351af50e95ef180400b747a5cc6b82bc840828a15548d"; + }; + appimageContents = appimageTools.extractType2 { inherit pname version src; }; + +in appimageTools.wrapType2 { + inherit pname version src; + + extraPkgs = pkgs: (appimageTools.defaultFhsEnvArgs.multiPkgs pkgs) ++ [ pkgs.libsecret ]; + + extraInstallCommands = '' + mkdir -p $out/share/applications $out/share/pixmaps + mv $out/bin/${pname}-${version} $out/bin/firefly-desktop + cp ${appimageContents}/desktop.desktop $out/share/applications/firefly-desktop.desktop + substituteInPlace $out/share/applications/firefly-desktop.desktop \ + --replace 'Exec=AppRun' 'Exec=firefly-desktop' \ + --replace 'Icon=desktop' 'Icon=firefly-desktop' + cp ${appimageContents}/desktop.png $out/share/pixmaps/firefly-desktop.png + ''; + + meta = with lib; { + description = "IOTA's New Wallet"; + homepage = "https://firefly.iota.org"; + license = licenses.asl20; + maintainers = with maintainers; [ wolfangaukang ]; + platforms = [ "x86_64-linux" ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fcdb81dbc5f87..de340325abca7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -323,6 +323,8 @@ with pkgs; evans = callPackage ../development/tools/evans { }; + firefly-desktop = callPackage ../applications/misc/firefly-desktop { }; + frugal = callPackage ../development/tools/frugal { }; glade = callPackage ../development/tools/glade { }; |