packages/{ai,hategroup}_blocklist: include two versions of blocklist

This commit is contained in:
Primrose 2025-11-02 14:51:11 +08:00
parent cb1310015e
commit 2ec26ff49e
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
3 changed files with 17 additions and 6 deletions

View file

@ -17,6 +17,10 @@ in
};
installPhase = ''
cp blocklist.txt $out
mkdir -p $out/share
cp blocklist.txt $out/share/domains.txt
cat $out/share/domains.txt |
sed 's/^\([^#].*\)$/0.0.0.0 \1/' > $out/share/hosts.txt
'';
}