summary refs log blame commit diff
path: root/pkgs/applications/networking/browsers/chromium/ungoogled.nix
blob: cf3d0a7d73ad2a13db275f1204e72912b67a7f45 (plain) (tree)
1
2
3
4
5
6
7
8
9





                 
 
     
      

  
                     
                               



                         
                                 
                                
                     






















                                                                                        
{ stdenv
, fetchFromGitHub
, python3Packages
, makeWrapper
, patch
}:

{ rev
, hash
}:

stdenv.mkDerivation {
  pname = "ungoogled-chromium";

  version = rev;

  src = fetchFromGitHub {
    owner = "ungoogled-software";
    repo = "ungoogled-chromium";
    inherit rev hash;
  };

  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"
  '';
}