nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.09 84 lines 2.0 kB view raw
1{ stdenv 2, fetchurl 3, autoreconfHook 4, docbook_xsl 5, docbook_xml_dtd_43 6, gtk-doc 7, lzip 8, libidn2 9, libunistring 10, libxslt 11, pkgconfig 12, python3 13, valgrind 14, publicsuffix-list 15}: 16 17stdenv.mkDerivation rec { 18 pname = "libpsl"; 19 version = "0.21.0"; 20 21 src = fetchurl { 22 url = "https://github.com/rockdaboot/${pname}/releases/download/${pname}-${version}/${pname}-${version}.tar.lz"; 23 sha256 = "183hadbira0d2zvv8272lspy31dgm9x26z35c61s5axcd5wd9g9i"; 24 }; 25 26 nativeBuildInputs = [ 27 autoreconfHook 28 docbook_xsl 29 docbook_xml_dtd_43 30 gtk-doc 31 lzip 32 pkgconfig 33 python3 34 valgrind 35 libxslt 36 ]; 37 38 buildInputs = [ 39 libidn2 40 libunistring 41 libxslt 42 ]; 43 44 propagatedBuildInputs = [ 45 publicsuffix-list 46 ]; 47 48 postPatch = '' 49 patchShebangs src/psl-make-dafsa 50 ''; 51 52 preAutoreconf = '' 53 gtkdocize 54 ''; 55 56 configureFlags = [ 57 # "--enable-gtk-doc" 58 "--enable-man" 59 "--enable-valgrind-tests" 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 ]; 64 65 enableParallelBuilding = true; 66 67 doCheck = !stdenv.isDarwin; 68 69 meta = with stdenv.lib; { 70 description = "C library for the Publix Suffix List"; 71 longDescription = '' 72 libpsl is a C library for the Publix Suffix List (PSL). A "public suffix" 73 is a domain name under which Internet users can directly register own 74 names. Browsers and other web clients can use it to avoid privacy-leaking 75 "supercookies" and "super domain" certificates, for highlighting parts of 76 the domain in a user interface or sorting domain lists by site. 77 ''; 78 homepage = "https://rockdaboot.github.io/libpsl/"; 79 changelog = "https://raw.githubusercontent.com/rockdaboot/${pname}/${pname}-${version}/NEWS"; 80 license = licenses.mit; 81 platforms = platforms.unix; 82 maintainers = [ maintainers.c0bw3b ]; 83 }; 84}