36 lines
952 B
Nix
36 lines
952 B
Nix
|
{ stdenv
|
||
|
, lib
|
||
|
, fetchFromGitHub
|
||
|
, unstableGitUpdater
|
||
|
}:
|
||
|
stdenv.mkDerivation {
|
||
|
pname = "uassets";
|
||
|
version = "0-unstable-2024-05-27";
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "uBlockOrigin";
|
||
|
repo = "uAssets";
|
||
|
rev = "c1534355786340767ce31bb89aa0cb40903685f4";
|
||
|
hash = "sha256-Euaop8Y4tUNWlpc+H+VJG65KcMkX6EOtbjPGyheCkPE=";
|
||
|
};
|
||
|
|
||
|
dontBuild = true;
|
||
|
|
||
|
installPhase = ''
|
||
|
mkdir -p $out/share/filters
|
||
|
for f in $(ls filters); do
|
||
|
cp "filters/$f" "$out/share/filters/ublock-$f"
|
||
|
done
|
||
|
cp thirdparties/easylist/* $out/share/filters
|
||
|
cp thirdparties/pgl.yoyo.org/as/serverlist $out/share/filters/pgl-serverlist.txt
|
||
|
cp thirdparties/urlhaus-filter/*.txt $out/share/filters
|
||
|
'';
|
||
|
|
||
|
passthru.updateScript = unstableGitUpdater { };
|
||
|
|
||
|
meta = with lib; {
|
||
|
homepage = "https://github.com/uBlockOrigin/uAssets";
|
||
|
description = "official uBlock Origin filter lists";
|
||
|
maintainers = with maintainers; [ colinsane ];
|
||
|
};
|
||
|
}
|