add helium browser
This commit is contained in:
parent
8c1b135dbc
commit
32ab27ac62
4 changed files with 59 additions and 0 deletions
|
|
@ -65,6 +65,7 @@
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(import ./packages/widevine-firefox/overlay.nix)
|
(import ./packages/widevine-firefox/overlay.nix)
|
||||||
(import ./packages/strawberry/overlay.nix)
|
(import ./packages/strawberry/overlay.nix)
|
||||||
|
(import ./packages/helium-browser/overlay.nix)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
./hosts/all.nix
|
./hosts/all.nix
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@
|
||||||
libreoffice-qt-fresh
|
libreoffice-qt-fresh
|
||||||
spotdl
|
spotdl
|
||||||
rclone
|
rclone
|
||||||
|
helium-browser
|
||||||
|
|
||||||
kde-rounded-corners
|
kde-rounded-corners
|
||||||
kdePackages.partitionmanager
|
kdePackages.partitionmanager
|
||||||
|
|
|
||||||
3
packages/helium-browser/overlay.nix
Normal file
3
packages/helium-browser/overlay.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
final: prev: {
|
||||||
|
helium-browser = prev.callPackage (builtins.path { path = ./package.nix; }) { };
|
||||||
|
}
|
||||||
54
packages/helium-browser/package.nix
Normal file
54
packages/helium-browser/package.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue