17 stdenv.mkDerivation rec {
22 url = "https://github.com/rockdaboot/${pname}/releases/download/${pname}-${version}/${pname}-${version}.tar.lz";
23 sha256 = "183hadbira0d2zvv8272lspy31dgm9x26z35c61s5axcd5wd9g9i";
35 ] ++ lib.optionals (!stdenv.isDarwin) [
45 propagatedBuildInputs = [
50 patchShebangs src/psl-make-dafsa
60 "--with-psl-distfile=${publicsuffix-list}/share/publicsuffix/public_suffix_list.dat"
61 "--with-psl-file=${publicsuffix-list}/share/publicsuffix/public_suffix_list.dat"
62 "--with-psl-testfile=${publicsuffix-list}/share/publicsuffix/test_psl.txt"
63 ] ++ lib.optionals (!stdenv.isDarwin) [
64 "--enable-valgrind-tests"
67 enableParallelBuilding = true;
72 description = "C library for the Publix Suffix List";
74 libpsl is a C library for the Publix Suffix List (PSL). A "public suffix"
75 is a domain name under which Internet users can directly register own
76 names. Browsers and other web clients can use it to avoid privacy-leaking
77 "supercookies" and "super domain" certificates, for highlighting parts of
78 the domain in a user interface or sorting domain lists by site.
80 homepage = "https://rockdaboot.github.io/libpsl/";
81 changelog = "https://raw.githubusercontent.com/rockdaboot/${pname}/${pname}-${version}/NEWS";
82 license = licenses.mit;
83 platforms = platforms.unix;
84 maintainers = [ maintainers.c0bw3b ];