nixpkgs/pkgs/development/libraries/gss/default.nix

36 lines
847 B
Nix
Raw Normal View History

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