2024-06-19 17:46:53 +00:00
|
|
|
{ lib, stdenvNoCC, fetchFromGitHub, unstableGitUpdater }:
|
2019-05-25 22:00:47 +00:00
|
|
|
|
2023-01-31 15:35:18 +00:00
|
|
|
stdenvNoCC.mkDerivation {
|
2019-05-25 22:00:47 +00:00
|
|
|
pname = "publicsuffix-list";
|
2024-08-22 05:33:20 +00:00
|
|
|
version = "0-unstable-2024-08-21";
|
2019-05-25 22:00:47 +00:00
|
|
|
|
2023-01-31 15:35:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "publicsuffix";
|
|
|
|
repo = "list";
|
2024-08-22 05:33:20 +00:00
|
|
|
rev = "30c3fc2db5ec0ecbc2efbb798b12459e9a22fffd";
|
|
|
|
hash = "sha256-RmSlBl6lHFFvEEG2rsnwMpF9X8tv0VhPwhnke4UxUmA=";
|
2023-01-31 15:35:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -Dm0444 public_suffix_list.dat tests/test_psl.txt -t $out/share/publicsuffix
|
|
|
|
|
|
|
|
runHook postInstall
|
2019-05-25 22:00:47 +00:00
|
|
|
'';
|
|
|
|
|
2024-06-19 17:46:53 +00:00
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|