23 lines
784 B
Nix
23 lines
784 B
Nix
{ ... }: {
|
|
perSystem = { pkgs, ... }: {
|
|
packages.helium = pkgs.appimageTools.wrapType2 rec {
|
|
pname = "helium";
|
|
version = "0.11.3.2";
|
|
|
|
src = pkgs.fetchurl {
|
|
url = "https://github.com/imputnet/helium-linux/releases/download/${version}/${pname}-${version}-x86_64.AppImage";
|
|
hash = "sha256-5gdyKg12ZV2hpf0RL+eoJnawuW/J8NobiG+zEA0IOHA=";
|
|
};
|
|
|
|
extraInstallCommands = let
|
|
contents = pkgs.appimageTools.extract { inherit pname version src; };
|
|
in ''
|
|
install -m 444 -D ${contents}/${pname}.desktop -t $out/share/applications
|
|
substituteInPlace $out/share/applications/${pname}.desktop \
|
|
--replace 'Exec=AppRun' 'Exec=${pname}'
|
|
cp -r ${contents}/usr/share/icons $out/share
|
|
'';
|
|
};
|
|
};
|
|
}
|