27 lines
773 B
Nix
27 lines
773 B
Nix
{ stdenv, fetchFromGitHub, lib }:
|
|
stdenv.mkDerivation rec {
|
|
pname = "stevenblack_block";
|
|
version = "3.14.116";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "StevenBlack";
|
|
repo = "hosts";
|
|
rev = version;
|
|
hash = "sha256-MATJK6QO//6z5CXS3zVo/s/Bz6c2z0g8C+InM5iiv2o=";
|
|
};
|
|
|
|
installPhase = ''
|
|
mkdir $out
|
|
# cp $src/hosts $out/hosts.list
|
|
grep 0\.0\.0\.0 $src/hosts > $out/hosts.list
|
|
'';
|
|
|
|
meta = {
|
|
description = "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 = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ grimmauld ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|