From 473628b2203635b2f8b7e119a59bcd65b843eab3 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Sat, 2 May 2015 04:11:47 -0700 Subject: [PATCH] gss: Modernize --- pkgs/development/libraries/gss/default.nix | 32 ++++++++++++---------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/pkgs/development/libraries/gss/default.nix b/pkgs/development/libraries/gss/default.nix index 75ae4054592..71dd8c78eda 100644 --- a/pkgs/development/libraries/gss/default.nix +++ b/pkgs/development/libraries/gss/default.nix @@ -1,4 +1,8 @@ -{ fetchurl, stdenv, shishi }: +{ stdenv, fetchurl + +# Optional Dependencies +, shishi ? null +}: stdenv.mkDerivation rec { name = "gss-1.0.2"; @@ -10,22 +14,22 @@ stdenv.mkDerivation rec { buildInputs = [ shishi ]; + configureFlags = [ + "--${if shishi != null then "enable" else "disable"}-kereberos5" + ]; + doCheck = true; - meta = { - description = "Generic Security Service"; - - longDescription = - '' GSS is an implementation of the Generic Security Service Application - Program Interface (GSS-API). GSS-API is used by network servers to - provide security services, e.g., to authenticate SMTP/IMAP clients - against SMTP/IMAP servers. - ''; + # Fixup .la files + postInstall = stdenv.lib.optionalString (shishi != null) '' + sed -i 's,\(-lshishi\),-L${shishi}/lib \1,' $out/lib/libgss.la + ''; + meta = with stdenv.lib; { homepage = http://www.gnu.org/software/gss/; - license = stdenv.lib.licenses.gpl3Plus; - - maintainers = [ stdenv.lib.maintainers.bjg ]; - platforms = stdenv.lib.platforms.all; + description = "Generic Security Service"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ bjg wkennington ]; + platforms = platforms.all; }; }