pkgs: add unified-hosts-lists
This commit is contained in:
parent
63d28c4ae2
commit
20c20cef46
|
@ -7,4 +7,6 @@
|
|||
nolimips = pkgs.callPackage ./nolimips { };
|
||||
|
||||
podgrab = pkgs.callPackage ./podgrab { };
|
||||
|
||||
unified-hosts-lists = pkgs.callPackage ./unified-hosts-lists { };
|
||||
}
|
||||
|
|
33
pkgs/unified-hosts-lists/default.nix
Normal file
33
pkgs/unified-hosts-lists/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ fetchFromGitHub, lib, stdenvNoCC }:
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "unified-hosts-lists";
|
||||
version = "3.6.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "StevenBlack";
|
||||
repo = "hosts";
|
||||
rev = version;
|
||||
sha256 = "sha256-U6vRwbFSYka2VS8M1z0n+FaTkKKwdV/cCWIKxp487/I=";
|
||||
};
|
||||
|
||||
phases = [ "installPhase" ];
|
||||
|
||||
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;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue