about summary refs log tree commit diff
path: root/pkgs/development/libraries/libpsl
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-05-07 16:05:51 +0200
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-05-07 16:08:48 +0200
commit72d925f7efd2c87f4a966f2b4010460d22ef6340 (patch)
treee628df9f9fd2d0b4911781bb0cec69243242f439 /pkgs/development/libraries/libpsl
parentc3f6c8c582f14538e4d6a7065e63bc03cafd8a7d (diff)
downloadnixlib-72d925f7efd2c87f4a966f2b4010460d22ef6340.tar
nixlib-72d925f7efd2c87f4a966f2b4010460d22ef6340.tar.gz
nixlib-72d925f7efd2c87f4a966f2b4010460d22ef6340.tar.bz2
nixlib-72d925f7efd2c87f4a966f2b4010460d22ef6340.tar.lz
nixlib-72d925f7efd2c87f4a966f2b4010460d22ef6340.tar.xz
nixlib-72d925f7efd2c87f4a966f2b4010460d22ef6340.tar.zst
nixlib-72d925f7efd2c87f4a966f2b4010460d22ef6340.zip
Add libpsl 0.7.1: Publix Suffix List C library
Diffstat (limited to 'pkgs/development/libraries/libpsl')
-rw-r--r--pkgs/development/libraries/libpsl/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libpsl/default.nix b/pkgs/development/libraries/libpsl/default.nix
new file mode 100644
index 000000000000..f1c54d5cf5fd
--- /dev/null
+++ b/pkgs/development/libraries/libpsl/default.nix
@@ -0,0 +1,37 @@
+{ stdenv, fetchFromGitHub, autoreconfHook, icu, libxslt, pkgconfig }:
+
+let version = "0.7.1"; in
+stdenv.mkDerivation rec {
+  name = "libpsl-${version}";
+
+  src = fetchFromGitHub {
+    sha256 = "0hbsidbmwgpg0h48wh2pzsq59j8az7naz3s5q3yqn99yyjji2vgw";
+    rev = name;
+    repo = "libpsl";
+    owner = "rockdaboot";
+  };
+
+  meta = with stdenv.lib; {
+    inherit version;
+    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.
+    '';
+    homepage = http://rockdaboot.github.io/libpsl/;
+    license = with licenses; mit;
+    platforms = with platforms; linux;
+    maintainers = with maintainers; [ nckx ];
+  };
+
+  buildInputs = [ autoreconfHook icu libxslt pkgconfig ];
+
+  configureFlags = "--disable-static --enable-man";
+
+  enableParallelBuilding = true;
+
+  doCheck = true;
+}