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