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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
816 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl
, withShishi ? !stdenv.isDarwin, shishi
2015-05-02 11:11:47 +00:00
}:
stdenv.mkDerivation rec {
2021-10-25 19:12:34 +00:00
pname = "gss";
version = "1.0.3";
src = fetchurl {
url = "mirror://gnu/gss/gss-${version}.tar.gz";
2015-05-31 04:25:13 +00:00
sha256 = "1syyvh3k659xf1hdv9pilnnhbbhs6vfapayp4xgdcc8mfgf9v4gz";
};
buildInputs = lib.optional withShishi shishi;
2015-05-02 11:11:47 +00:00
configureFlags = [
"--${if withShishi then "enable" else "disable"}-kerberos5"
2015-05-02 11:11:47 +00:00
];
2015-05-02 11:11:47 +00:00
doCheck = true;
2015-05-02 11:11:47 +00:00
# Fixup .la files
postInstall = lib.optionalString withShishi ''
2015-05-02 11:11:47 +00: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 11:11:47 +00:00
description = "Generic Security Service";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ bjg ];
2015-05-02 11:11:47 +00:00
platforms = platforms.all;
};
}