2019-05-25 22:00:47 +00:00
|
|
|
{ lib, fetchFromGitHub }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "publicsuffix-list";
|
2021-11-15 10:35:15 +00:00
|
|
|
version = "2021-09-03";
|
2019-08-13 21:52:01 +00:00
|
|
|
in fetchFromGitHub {
|
2019-05-25 22:00:47 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
owner = "publicsuffix";
|
|
|
|
repo = "list";
|
2021-11-15 10:35:15 +00:00
|
|
|
rev = "2533d032871e1ef1f410fc0754b848d4587c8021";
|
|
|
|
sha256 = "sha256-Q8uIXM1CMu8dlWcVoL17M1XRGu3kG7Y7jpx0oHQh+2I=";
|
2019-05-25 22:00:47 +00:00
|
|
|
|
|
|
|
postFetch = ''
|
2022-09-08 20:55:32 +00:00
|
|
|
install -Dm0444 $out/public_suffix_list.dat $out/tests/test_psl.txt -t $out/share/publicsuffix
|
|
|
|
shopt -s extglob dotglob
|
|
|
|
rm -rf $out/!(share)
|
|
|
|
shopt -u extglob dotglob
|
2019-05-25 22:00:47 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://publicsuffix.org/";
|
|
|
|
description = "Cross-vendor public domain suffix database";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = [ maintainers.c0bw3b ];
|
|
|
|
};
|
|
|
|
}
|