diff --git a/nix/packages/by-name/ai_blocklist/package.nix b/nix/packages/by-name/ai_blocklist/package.nix new file mode 100644 index 00000000..dc8967a8 --- /dev/null +++ b/nix/packages/by-name/ai_blocklist/package.nix @@ -0,0 +1,23 @@ +{ + fetchFromGitHub, + stdenvNoCC, + lib, +}: let + rev = "9bb188e2701138e03f73bacebd6b19b181ca0012"; +in + stdenvNoCC.mkDerivation { + pname = "ai_blocklist"; + version = "unstable-" + lib.substring 0 8 rev; + + src = fetchFromGitHub { + owner = "laylavish"; + repo = "uBlockOrigin-HUGE-AI-Blocklist"; + inherit rev; + hash = "sha256-p3wfR28DH6V8BHn9DT10d09Yq3mdbBecWwlR1CdDYUA="; + }; + + installPhase = '' + cp noai_hosts.txt $out + sed -i 's/^0.0.0.0 //' $out + ''; + }