Files
nix-pkgs/pkgs/hellium/default.nix
T
2026-05-24 02:26:59 -03:00

26 lines
748 B
Nix

{ lib, pkgs, ... }:
{
helium = pkgs.appimageTools.wrapType2 rec {
pname = "helium";
version = "0.12.4.1";
src = pkgs.fetchurl {
url = "https://github.com/imputnet/helium-linux/releases/download/${version}/${pname}-${version}-x86_64.AppImage";
sha256 = "sha256-OgS8HkLBseFrEhNFJxMwp1bg0gzPdfY1VaySAAp7vq0=";
};
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
'';
};
}