depot/pkgs/data/misc/publicsuffix-list/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

33 lines
829 B
Nix

{ lib, stdenvNoCC, fetchFromGitHub, unstableGitUpdater }:
stdenvNoCC.mkDerivation {
pname = "publicsuffix-list";
version = "0-unstable-2024-09-10";
src = fetchFromGitHub {
owner = "publicsuffix";
repo = "list";
rev = "fbcc4c495e8aed1fe0e90156e6b3796556eb6978";
hash = "sha256-L6TepLI91IWImX453GO8VNSSle75f0H1IZbFr2qepDA=";
};
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 ];
};
}