packages/ai_blocklist: add PR as patches

This commit is contained in:
Primrose 2026-01-22 16:50:18 +01:00
parent aed2fed5a9
commit 4260ebfda0
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -1,5 +1,6 @@
{
fetchFromGitHub,
fetchpatch,
stdenvNoCC,
lib,
}:
@ -14,6 +15,31 @@ stdenvNoCC.mkDerivation (finalAttrs: {
hash = "sha256-p3wfR28DH6V8BHn9DT10d09Yq3mdbBecWwlR1CdDYUA=";
};
patches =
let
mkPRPatch =
{ number, hash }:
fetchpatch {
name = "ai-blocklist-patch-PR${toString number}";
url = "https://patch-diff.githubusercontent.com/raw/laylavish/uBlockOrigin-HUGE-AI-Blocklist/pull/${toString number}.patch";
inherit hash;
};
in
map mkPRPatch [
{
number = 286;
hash = "sha256-ijkOCtHCmiSUTpVfGIumPijr8xscRDBTtu7XfTMRiXY=";
}
{
number = 300;
hash = "sha256-oso0e1+CM7hmglNZpFgaz51OU2Dhuuo7mXayTbva+vY=";
}
{
number = 324;
hash = "sha256-/FFPFZpIQSPE7XXeFEcmVv8g8wg5JFIgKoYUTthLg5A=";
}
];
# Build takes no time
preferLocalBuild = true;
allowSubstitutes = false;