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

36 lines
823 B
Nix
Raw Normal View History

2015-05-02 11:11:47 +00:00
{ stdenv, fetchurl
# Optional Dependencies
, shishi ? null
}:
stdenv.mkDerivation rec {
name = "gss-1.0.2";
src = fetchurl {
url = "mirror://gnu/gss/${name}.tar.gz";
sha256 = "1qa8lbkzi6ilfggx7mchfzjnchvhwi68rck3jf9j4425ncz7zsd9";
};
buildInputs = [ shishi ];
2015-05-02 11:11:47 +00:00
configureFlags = [
"--${if shishi != null then "enable" else "disable"}-kereberos5"
];
2015-05-02 11:11:47 +00:00
doCheck = true;
2015-05-02 11:11:47 +00:00
# Fixup .la files
2015-05-11 22:15:04 +00:00
postInstall = stdenv.lib.optionalString (!stdenv.isDarwin && shishi != null) ''
2015-05-02 11:11:47 +00:00
sed -i 's,\(-lshishi\),-L${shishi}/lib \1,' $out/lib/libgss.la
'';
2015-05-02 11:11:47 +00:00
meta = with stdenv.lib; {
homepage = http://www.gnu.org/software/gss/;
2015-05-02 11:11:47 +00:00
description = "Generic Security Service";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ bjg wkennington ];
platforms = platforms.all;
};
}