39 lines
838 B
Nix
39 lines
838 B
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchFromGitHub,
|
|
unstableGitUpdater,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "publicsuffix-list";
|
|
version = "0-unstable-2025-06-10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "publicsuffix";
|
|
repo = "list";
|
|
rev = "9f9c1865c17a23edce0491aa6e697cc987fcdafa";
|
|
hash = "sha256-BX8pFGtqTTlWgsZ5IJP7hApG4ysSYHTibT3+hwugSHA=";
|
|
};
|
|
|
|
dontBuild = true;
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm0444 public_suffix_list.dat tests/test_psl.txt -t $out/share/publicsuffix
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
meta = with lib; {
|
|
homepage = "https://publicsuffix.org/";
|
|
description = "Cross-vendor public domain suffix database";
|
|
platforms = platforms.all;
|
|
license = licenses.mpl20;
|
|
maintainers = [ maintainers.c0bw3b ];
|
|
};
|
|
}
|