pkgs: unbound-zones-adblock: use upstream package
All checks were successful
ci/woodpecker/push/check Pipeline was successful

This is a slight regression, as the current version of
`stevenblack-blocklist` is 3.13.10 and the version I packaged is
3.14.37.

However I am lazy and want to avoid having to bump the version
manually...
This commit is contained in:
Bruno BELANYI 2023-12-16 14:28:46 +00:00
parent 49f695bf68
commit 7ccb8ea8b5

View file

@ -1,9 +1,9 @@
{ lib, gawk, stdenvNoCC, unified-hosts-lists }: { lib, gawk, stdenvNoCC, stevenblack-blocklist }:
stdenvNoCC.mkDerivation { stdenvNoCC.mkDerivation {
name = "unbound-zones-adblock"; name = "unbound-zones-adblock";
version = unified-hosts-lists.version; version = stevenblack-blocklist.rev;
src = unified-hosts-lists; src = stevenblack-blocklist;
dontUnpack = true; dontUnpack = true;
@ -18,9 +18,11 @@ stdenvNoCC.mkDerivation {
]; ];
in in
'' ''
mkdir -p $out shopt -s globstar
for file in $src/*; do for file in $src/**/hosts; do
${gawkCmd} $file | tr '[:upper:]' '[:lower:]' | sort -u > $out/$(basename $file) outFile="$out/''${file#$src}"
mkdir -p "$(dirname "$outFile")"
${gawkCmd} $file | tr '[:upper:]' '[:lower:]' | sort -u > "$outFile"
done done
''; '';