2021-06-16 20:08:44 +02:00
|
|
|
{ lib, fetchFromGitHub, stdenvNoCC }:
|
2021-04-21 23:11:20 +02:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "unified-hosts-lists";
|
2023-03-24 21:46:48 +01:00
|
|
|
version = "3.12.15";
|
2021-04-21 23:11:20 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "StevenBlack";
|
|
|
|
repo = "hosts";
|
|
|
|
rev = version;
|
2023-04-01 17:33:26 +02:00
|
|
|
hash = "sha256-HoNX57lCoIr36B/7HMuazWSWeAPPfWY1oZf6dXnxYIE=";
|
2021-04-21 23:11:20 +02:00
|
|
|
};
|
|
|
|
|
2021-08-31 20:11:11 +02:00
|
|
|
dontUnpack = true;
|
2021-04-21 23:11:20 +02:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
cp -r $src/hosts $out
|
|
|
|
for file in $src/alternates/*/hosts; do
|
|
|
|
cp $file $out/$(basename $(dirname $file))
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Unified host lists";
|
|
|
|
longDescription = ''
|
|
|
|
Consolidating and extending hosts files from several well-curated sources.
|
|
|
|
Optionally pick extensions for porn, social media, and other categories.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/StevenBlack/hosts";
|
|
|
|
license = licenses.mit;
|
2021-05-13 10:27:19 +02:00
|
|
|
maintainers = with maintainers; [ ambroisie ];
|
2023-08-04 11:54:10 +02:00
|
|
|
platforms = platforms.all;
|
2021-04-21 23:11:20 +02:00
|
|
|
};
|
|
|
|
}
|