add helium browser

This commit is contained in:
Sean Kovacs 2025-11-13 10:04:30 -05:00
commit 32ab27ac62
Signed by: sckova
GPG key ID: 00F325187C68651A
4 changed files with 59 additions and 0 deletions

View file

@ -65,6 +65,7 @@
nixpkgs.overlays = [
(import ./packages/widevine-firefox/overlay.nix)
(import ./packages/strawberry/overlay.nix)
(import ./packages/helium-browser/overlay.nix)
];
}
./hosts/all.nix

View file

@ -26,6 +26,7 @@
libreoffice-qt-fresh
spotdl
rclone
helium-browser
kde-rounded-corners
kdePackages.partitionmanager

View file

@ -0,0 +1,3 @@
final: prev: {
helium-browser = prev.callPackage (builtins.path { path = ./package.nix; }) { };
}

View file

@ -0,0 +1,54 @@
{
stdenv,
lib,
appimageTools,
fetchurl,
makeDesktopItem,
copyDesktopItems,
}:
let
pname = "helium-browser";
version = "0.6.4.1";
architectures = {
"x86_64-linux" = {
arch = "x86_64";
hash = lib.fakeHash;
};
"aarch64-linux" = {
arch = "arm64";
hash = "sha256-B63tvOtSRlMRJozvzC7lqG2LM0ZgLIq2G/AHABl+Qqg=";
};
};
src =
let
inherit (architectures.${stdenv.hostPlatform.system}) arch hash;
in
fetchurl {
url = "https://github.com/imputnet/helium-linux/releases/download/${version}/helium-${version}-${arch}.AppImage";
inherit hash;
};
appimageContents = appimageTools.extractType2 {
inherit pname version src;
};
in
appimageTools.wrapType2 {
inherit pname version src;
extraInstallCommands = ''
install -Dm444 ${appimageContents}/helium.desktop -t $out/share/applications
install -Dm444 ${appimageContents}/helium.png -t $out/share/pixmaps
substituteInPlace $out/share/applications/helium.desktop \
--replace-fail 'Exec=AppRun' 'Exec=${pname}'
'';
meta = {
description = "A private, respectful browser";
homepage = "https://github.com/imputnet/helium-linux";
downloadPage = "https://github.com/imputnet/helium-linux/releases";
license = lib.licenses.gpl3Only;
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
platforms = lib.attrNames architectures;
};
}