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

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

43 lines
974 B
Nix
Raw Normal View History

2023-02-08 18:35:43 +00:00
{ 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";
2023-02-08 18:35:43 +00:00
version = "1.0.4";
src = fetchurl {
url = "mirror://gnu/gss/gss-${version}.tar.gz";
2023-02-08 18:35:43 +00:00
hash = "sha256-7M6r3vTK4/znIYsuy4PrQifbpEtTthuMKy6IrgJBnHM=";
};
buildInputs = lib.optional withShishi shishi;
2023-02-08 18:35:43 +00:00
# ./stdint.h:89:5: error: expected value in expression
preConfigure = lib.optionalString stdenv.isDarwin ''
export GNULIBHEADERS_OVERRIDE_WINT_T=0
'';
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; [ ];
2015-05-02 11:11:47 +00:00
platforms = platforms.all;
};
}