2015-05-02 13:11:47 +02:00
|
|
|
{ stdenv, fetchurl
|
2017-03-06 22:57:54 +01:00
|
|
|
, withShishi ? !stdenv.isDarwin, shishi ? null
|
2015-05-02 13:11:47 +02:00
|
|
|
}:
|
2010-04-26 10:59:25 +02:00
|
|
|
|
2017-03-06 22:57:54 +01:00
|
|
|
assert withShishi -> shishi != null;
|
|
|
|
|
2010-04-26 10:59:25 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2015-05-31 06:25:13 +02:00
|
|
|
name = "gss-1.0.3";
|
2010-04-26 10:59:25 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/gss/${name}.tar.gz";
|
2015-05-31 06:25:13 +02:00
|
|
|
sha256 = "1syyvh3k659xf1hdv9pilnnhbbhs6vfapayp4xgdcc8mfgf9v4gz";
|
2010-04-26 10:59:25 +02:00
|
|
|
};
|
|
|
|
|
2017-03-06 22:57:54 +01:00
|
|
|
buildInputs = stdenv.lib.optional withShishi shishi;
|
2010-05-20 15:00:30 +02:00
|
|
|
|
2015-05-02 13:11:47 +02:00
|
|
|
configureFlags = [
|
2017-03-06 22:57:54 +01:00
|
|
|
"--${if withShishi != null then "enable" else "disable"}-kereberos5"
|
2015-05-02 13:11:47 +02:00
|
|
|
];
|
2010-04-26 10:59:25 +02:00
|
|
|
|
2015-05-02 13:11:47 +02:00
|
|
|
doCheck = true;
|
2010-04-26 10:59:25 +02:00
|
|
|
|
2015-05-02 13:11:47 +02:00
|
|
|
# Fixup .la files
|
2017-03-06 22:57:54 +01:00
|
|
|
postInstall = stdenv.lib.optionalString withShishi ''
|
2015-05-02 13:11:47 +02:00
|
|
|
sed -i 's,\(-lshishi\),-L${shishi}/lib \1,' $out/lib/libgss.la
|
|
|
|
'';
|
2010-04-26 10:59:25 +02:00
|
|
|
|
2015-05-02 13:11:47 +02:00
|
|
|
meta = with stdenv.lib; {
|
2010-04-26 10:59:25 +02:00
|
|
|
homepage = http://www.gnu.org/software/gss/;
|
2015-05-02 13:11:47 +02:00
|
|
|
description = "Generic Security Service";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ bjg wkennington ];
|
|
|
|
platforms = platforms.all;
|
2010-04-26 10:59:25 +02:00
|
|
|
};
|
|
|
|
}
|