40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{
|
|
stdenvNoCC,
|
|
lib,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
}:
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "uassets";
|
|
version = "0-unstable-2025-08-26";
|
|
src = fetchFromGitHub {
|
|
owner = "uBlockOrigin";
|
|
repo = "uAssets";
|
|
rev = "a88c1bca6cd044cf1b683fc7c29a8018c125d220";
|
|
hash = "sha256-ygJPPBKdZ8wDtPC4MchFdC1aeVFRkfh8CzylT0uDoZM=";
|
|
};
|
|
|
|
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 = nix-update-script {
|
|
# XXX(2024/05/26): why does `--version unstable` not work, but `--version branch` *does*??
|
|
extraArgs = [ "--version" "branch" ];
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/uBlockOrigin/uAssets";
|
|
description = "official uBlock Origin filter lists";
|
|
maintainers = with maintainers; [ colinsane ];
|
|
};
|
|
}
|