mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-01 14:39:39 +00:00
packages/hategroup_blocklist: use finalAttrs
This commit is contained in:
parent
e6b92df151
commit
77cbb354f5
1 changed files with 4 additions and 7 deletions
|
|
@ -3,17 +3,14 @@
|
||||||
stdenvNoCC,
|
stdenvNoCC,
|
||||||
lib,
|
lib,
|
||||||
}:
|
}:
|
||||||
let
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
||||||
rev = "cc19c050997d5f54014bb20c764b131e003dfb17";
|
|
||||||
in
|
|
||||||
stdenvNoCC.mkDerivation {
|
|
||||||
pname = "hategroup_blocklist";
|
pname = "hategroup_blocklist";
|
||||||
version = "unstable-" + lib.substring 0 8 rev;
|
version = "unstable-" + lib.substring 0 8 finalAttrs.src.rev;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "chigh";
|
owner = "chigh";
|
||||||
repo = "hategroup-dnsbl";
|
repo = "hategroup-dnsbl";
|
||||||
inherit rev;
|
rev = "cc19c050997d5f54014bb20c764b131e003dfb17";
|
||||||
hash = "sha256-SZBrjIBUw687MdrbOV7WrP5IhAAtKvPL2GqdcICHNvQ=";
|
hash = "sha256-SZBrjIBUw687MdrbOV7WrP5IhAAtKvPL2GqdcICHNvQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -28,4 +25,4 @@ stdenvNoCC.mkDerivation {
|
||||||
cat $out/share/domains.txt |
|
cat $out/share/domains.txt |
|
||||||
sed 's/^\([^#].*\)$/0.0.0.0 \1/' > $out/share/hosts.txt
|
sed 's/^\([^#].*\)$/0.0.0.0 \1/' > $out/share/hosts.txt
|
||||||
'';
|
'';
|
||||||
}
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue