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

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
1 changed files with 8 additions and 6 deletions

View File

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