Update default.nix
This commit is contained in:
+16
-21
@@ -1,25 +1,20 @@
|
|||||||
{ lib, pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
|
||||||
helium = pkgs.appimageTools.wrapType2 rec {
|
|
||||||
|
|
||||||
pname = "helium";
|
pkgs.appimageTools.wrapType2 rec {
|
||||||
version = "0.12.4.1";
|
pname = "helium";
|
||||||
|
version = "0.12.4.1";
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
src = pkgs.fetchurl {
|
||||||
url = "https://github.com/imputnet/helium-linux/releases/download/${version}/${pname}-${version}-x86_64.AppImage";
|
url = "https://github.com/imputnet/helium-linux/releases/download/${version}/${pname}-${version}-x86_64.AppImage";
|
||||||
sha256 = "sha256-OgS8HkLBseFrEhNFJxMwp1bg0gzPdfY1VaySAAp7vq0=";
|
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
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraInstallCommands =
|
||||||
|
let
|
||||||
|
contents = pkgs.appimageTools.extract { inherit pname version src; };
|
||||||
|
in
|
||||||
|
''
|
||||||
|
install -m 444 -D ${contents}/${pname}.desktop -t $out/share/applications
|
||||||
|
cp -r ${contents}/usr/share/icons $out/share
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user