packages/hategroup_blocklist: use finalAttrs

This commit is contained in:
Primrose 2025-12-31 17:14:06 +01:00
parent e6b92df151
commit 77cbb354f5
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -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
''; '';
} })