pkgs: unbound-zones-adblock: use upstream package
All checks were successful
ci/woodpecker/push/check Pipeline was successful
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:
parent
49f695bf68
commit
7ccb8ea8b5
|
@ -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
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue