mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
2b6b434477
I used nix-instantiate to verify that the derivations for chromium and ungoogled-chromium remain unchanged (only the meta attributes change slightly as I added myself as ungoogled-chromium to receive notifications for PRs/issues).
44 lines
641 B
Nix
44 lines
641 B
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, python3Packages
|
|
, makeWrapper
|
|
, patch
|
|
}:
|
|
|
|
{ rev
|
|
, sha256
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ungoogled-chromium-${version}";
|
|
|
|
version = rev;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Eloston";
|
|
repo = "ungoogled-chromium";
|
|
inherit rev sha256;
|
|
};
|
|
|
|
dontBuild = true;
|
|
|
|
buildInputs = [
|
|
python3Packages.python
|
|
patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
];
|
|
|
|
patchPhase = ''
|
|
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"
|
|
'';
|
|
}
|