2019-05-25 23:06:42 +01:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, docbook_xsl, docbook_xml_dtd_43, gtk-doc, lzip
|
|
|
|
, libidn2, libunistring, libxslt, pkgconfig, python3, valgrind
|
|
|
|
, publicsuffix-list
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libpsl";
|
|
|
|
version = "0.21.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/rockdaboot/${pname}/releases/download/${pname}-${version}/${pname}-${version}.tar.lz";
|
|
|
|
sha256 = "183hadbira0d2zvv8272lspy31dgm9x26z35c61s5axcd5wd9g9i";
|
2015-08-06 18:47:00 +01:00
|
|
|
};
|
|
|
|
|
2019-05-25 23:06:42 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook docbook_xsl docbook_xml_dtd_43 gtk-doc lzip pkgconfig python3 valgrind ];
|
|
|
|
buildInputs = [ libidn2 libunistring libxslt ];
|
|
|
|
propagatedBuildInputs = [ publicsuffix-list ];
|
2015-08-06 18:47:00 +01:00
|
|
|
|
2015-09-25 10:33:21 +01:00
|
|
|
postPatch = ''
|
2016-08-03 19:02:25 +01:00
|
|
|
patchShebangs src/psl-make-dafsa
|
2015-09-25 10:33:21 +01:00
|
|
|
'';
|
|
|
|
|
2015-08-06 18:47:00 +01:00
|
|
|
preAutoreconf = ''
|
2015-08-06 20:33:05 +01:00
|
|
|
gtkdocize
|
2015-08-06 18:47:00 +01:00
|
|
|
'';
|
|
|
|
|
2016-01-02 17:59:09 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--disable-static"
|
2019-06-03 20:55:07 +01:00
|
|
|
# "--enable-gtk-doc"
|
2016-01-02 17:59:09 +00:00
|
|
|
"--enable-man"
|
2019-05-25 23:06:42 +01:00
|
|
|
"--enable-valgrind-tests"
|
|
|
|
"--with-psl-distfile=${publicsuffix-list}/share/publicsuffix/public_suffix_list.dat"
|
|
|
|
"--with-psl-file=${publicsuffix-list}/share/publicsuffix/public_suffix_list.dat"
|
|
|
|
"--with-psl-testfile=${publicsuffix-list}/share/publicsuffix/test_psl.txt"
|
2016-01-02 17:59:09 +00:00
|
|
|
];
|
2015-08-06 18:47:00 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2015-05-07 15:05:51 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "C library for the Publix Suffix List";
|
|
|
|
longDescription = ''
|
|
|
|
libpsl is a C library for the Publix Suffix List (PSL). A "public suffix"
|
|
|
|
is a domain name under which Internet users can directly register own
|
|
|
|
names. Browsers and other web clients can use it to avoid privacy-leaking
|
|
|
|
"supercookies" and "super domain" certificates, for highlighting parts of
|
|
|
|
the domain in a user interface or sorting domain lists by site.
|
|
|
|
'';
|
2019-05-25 23:06:42 +01:00
|
|
|
homepage = "https://rockdaboot.github.io/libpsl/";
|
|
|
|
changelog = "https://raw.githubusercontent.com/rockdaboot/${pname}/${pname}-${version}/NEWS";
|
2015-05-28 18:20:29 +01:00
|
|
|
license = licenses.mit;
|
2019-05-25 23:06:42 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.c0bw3b ];
|
2015-05-07 15:05:51 +01:00
|
|
|
};
|
|
|
|
}
|