2020-04-13 21:17:05 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, python3Packages
|
|
|
|
, makeWrapper
|
|
|
|
, patch
|
|
|
|
}:
|
2020-12-09 18:13:26 +00:00
|
|
|
|
2020-04-13 21:17:05 +01:00
|
|
|
{ rev
|
|
|
|
, sha256
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-12 11:51:53 +01:00
|
|
|
pname = "ungoogled-chromium";
|
2020-04-13 21:17:05 +01:00
|
|
|
|
|
|
|
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"
|
|
|
|
'';
|
|
|
|
}
|