1
0
forked from nikkuss/pkgs

helium-browser: init

This commit is contained in:
2025-09-28 11:37:05 +04:00
parent b8c8735d42
commit 6a0bbb90d2
10 changed files with 1612 additions and 5 deletions
@@ -0,0 +1,57 @@
{
stdenv,
fetchFromGitHub,
python3Packages,
makeWrapper,
patch,
}:
{
rev,
hash,
}:
stdenv.mkDerivation {
pname = "helium-patcher";
version = rev;
src = fetchFromGitHub {
owner = "imputnet";
repo = "helium";
inherit rev hash;
};
dontBuild = true;
patches = [ ./fix-scripts.patch ];
buildInputs = [
(python3Packages.python.withPackages (
pythonPackages: with pythonPackages; [
pillow
]
))
patch
];
nativeBuildInputs = [
makeWrapper
];
postPatch = ''
sed -i '/chromium-widevine/d' patches/series
'';
installPhase = ''
mkdir $out
cp -R * $out/
wrapProgram $out/utils/patches.py --add-flags "apply" --prefix PATH : "${patch}/bin"
chmod +x $out/utils/name_substitution.py
chmod +x $out/utils/helium_version.py
chmod +x $out/utils/generate_resources.py
chmod +x $out/utils/replace_resources.py
'';
}