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