nixpkgs/pkgs/applications/networking/browsers/chromium/ungoogled.nix
networkException ab757c51f5
ungoogled-chromium: update repo links to ungoogled-software organisation
The main repository has moved from the Eloston user to the
ungoogled-software organisation.
2023-04-21 21:36:36 +02:00

44 lines
642 B
Nix

{ stdenv
, fetchFromGitHub
, python3Packages
, makeWrapper
, patch
}:
{ rev
, sha256
}:
stdenv.mkDerivation rec {
pname = "ungoogled-chromium";
version = rev;
src = fetchFromGitHub {
owner = "ungoogled-software";
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"
'';
}