Update default.nix
This commit is contained in:
+60
-15
@@ -3,7 +3,8 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
pkgs.appimageTools.wrapType2 rec {
|
|
||||||
|
let
|
||||||
pname = "helium";
|
pname = "helium";
|
||||||
version = "0.12.4.1";
|
version = "0.12.4.1";
|
||||||
|
|
||||||
@@ -12,26 +13,70 @@ pkgs.appimageTools.wrapType2 rec {
|
|||||||
hash = "sha256-OgS8HkLBseFrEhNFJxMwp1bg0gzPdfY1VaySAAp7vq0=";
|
hash = "sha256-OgS8HkLBseFrEhNFJxMwp1bg0gzPdfY1VaySAAp7vq0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
contents = pkgs.appimageTools.extractType2 {
|
||||||
|
inherit pname version src;
|
||||||
|
};
|
||||||
|
in
|
||||||
|
pkgs.appimageTools.wrapType2 {
|
||||||
|
inherit pname version src;
|
||||||
|
|
||||||
|
extraPkgs =
|
||||||
|
pkgs: with pkgs; [
|
||||||
|
gtk3
|
||||||
|
nss
|
||||||
|
nspr
|
||||||
|
libdrm
|
||||||
|
mesa
|
||||||
|
xorg.libX11
|
||||||
|
xorg.libxcb
|
||||||
|
xorg.libXcomposite
|
||||||
|
xorg.libXdamage
|
||||||
|
xorg.libXext
|
||||||
|
xorg.libXfixes
|
||||||
|
xorg.libXrandr
|
||||||
|
xorg.libXi
|
||||||
|
xorg.libXtst
|
||||||
|
xorg.libXScrnSaver
|
||||||
|
at-spi2-atk
|
||||||
|
atk
|
||||||
|
cairo
|
||||||
|
pango
|
||||||
|
expat
|
||||||
|
alsa-lib
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
makeWrapper
|
makeWrapper
|
||||||
];
|
];
|
||||||
|
|
||||||
extraInstallCommands =
|
extraInstallCommands = ''
|
||||||
let
|
mkdir -p $out/share/applications
|
||||||
contents = pkgs.appimageTools.extractType2 { inherit pname version src; };
|
mkdir -p $out/share/icons
|
||||||
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
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
install -Dm444 \
|
||||||
description = "helium navegador";
|
${contents}/${pname}.desktop \
|
||||||
|
$out/share/applications/${pname}.desktop
|
||||||
|
|
||||||
|
substituteInPlace $out/share/applications/${pname}.desktop \
|
||||||
|
--replace-fail 'Exec=AppRun' 'Exec=$out/bin/${pname}'
|
||||||
|
|
||||||
|
if [ -d "${contents}/usr/share/icons" ]; then
|
||||||
|
cp -r ${contents}/usr/share/icons/* $out/share/icons/
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f "${contents}/${pname}.png" ]; then
|
||||||
|
install -Dm444 \
|
||||||
|
${contents}/${pname}.png \
|
||||||
|
$out/share/pixmaps/${pname}.png
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Helium Browser";
|
||||||
homepage = "https://github.com/imputnet/helium";
|
homepage = "https://github.com/imputnet/helium";
|
||||||
changelog = "https://github.com/imputnet/helium/releases";
|
changelog = "https://github.com/imputnet/helium/releases";
|
||||||
license = lib.licenses.bsl11;
|
license = licenses.bsl11;
|
||||||
mainProgram = "helium";
|
platforms = [ "x86_64-linux" ];
|
||||||
|
mainProgram = pname;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user