mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-01 14:39:39 +00:00
packages/ai_blocklist: add PR as patches
This commit is contained in:
parent
aed2fed5a9
commit
4260ebfda0
1 changed files with 26 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue