2015-05-02 12:11:47 +01:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
|
|
|
|
# Optional Dependencies
|
|
|
|
, shishi ? null
|
|
|
|
}:
|
2010-04-26 09:59:25 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2011-12-01 22:44:53 +00:00
|
|
|
name = "gss-1.0.2";
|
2010-04-26 09:59:25 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/gss/${name}.tar.gz";
|
2011-12-01 22:44:53 +00:00
|
|
|
sha256 = "1qa8lbkzi6ilfggx7mchfzjnchvhwi68rck3jf9j4425ncz7zsd9";
|
2010-04-26 09:59:25 +01:00
|
|
|
};
|
|
|
|
|
2010-05-20 14:00:30 +01:00
|
|
|
buildInputs = [ shishi ];
|
|
|
|
|
2015-05-02 12:11:47 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--${if shishi != null then "enable" else "disable"}-kereberos5"
|
|
|
|
];
|
2010-04-26 09:59:25 +01:00
|
|
|
|
2015-05-02 12:11:47 +01:00
|
|
|
doCheck = true;
|
2010-04-26 09:59:25 +01:00
|
|
|
|
2015-05-02 12:11:47 +01:00
|
|
|
# Fixup .la files
|
2015-05-11 23:15:04 +01:00
|
|
|
postInstall = stdenv.lib.optionalString (!stdenv.isDarwin && shishi != null) ''
|
2015-05-02 12:11:47 +01:00
|
|
|
sed -i 's,\(-lshishi\),-L${shishi}/lib \1,' $out/lib/libgss.la
|
|
|
|
'';
|
2010-04-26 09:59:25 +01:00
|
|
|
|
2015-05-02 12:11:47 +01:00
|
|
|
meta = with stdenv.lib; {
|
2010-04-26 09:59:25 +01:00
|
|
|
homepage = http://www.gnu.org/software/gss/;
|
2015-05-02 12:11:47 +01:00
|
|
|
description = "Generic Security Service";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ bjg wkennington ];
|
|
|
|
platforms = platforms.all;
|
2010-04-26 09:59:25 +01:00
|
|
|
};
|
|
|
|
}
|