34 lines
829 B
Nix
34 lines
829 B
Nix
{ lib, stdenvNoCC, fetchFromGitHub, unstableGitUpdater }:
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "publicsuffix-list";
|
|
version = "0-unstable-2024-10-25";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "publicsuffix";
|
|
repo = "list";
|
|
rev = "435e07efb28973ea116592dc2291b1f8c27080aa";
|
|
hash = "sha256-nLuZVgPHNnxOT3GcGz6TEbHkiNgVU5f2uWcgCfr7tZ8=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|