1{ stdenv, fetchurl
2, withShishi ? !stdenv.isDarwin, shishi ? null
3}:
4
5assert withShishi -> shishi != null;
6
7stdenv.mkDerivation rec {
8 name = "gss-1.0.3";
9
10 src = fetchurl {
11 url = "mirror://gnu/gss/${name}.tar.gz";
12 sha256 = "1syyvh3k659xf1hdv9pilnnhbbhs6vfapayp4xgdcc8mfgf9v4gz";
13 };
14
15 buildInputs = stdenv.lib.optional withShishi shishi;
16
17 configureFlags = [
18 "--${if withShishi != null then "enable" else "disable"}-kereberos5"
19 ];
20
21 doCheck = true;
22
23 # Fixup .la files
24 postInstall = stdenv.lib.optionalString withShishi ''
25 sed -i 's,\(-lshishi\),-L${shishi}/lib \1,' $out/lib/libgss.la
26 '';
27
28 meta = with stdenv.lib; {
29 homepage = http://www.gnu.org/software/gss/;
30 description = "Generic Security Service";
31 license = licenses.gpl3Plus;
32 maintainers = with maintainers; [ bjg wkennington ];
33 platforms = platforms.all;
34 };
35}