nixpkgs/pkgs/by-name/gs/gss/package.nix

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

48 lines
1.2 KiB
Nix
Raw Normal View History

2023-02-08 18:35:43 +00:00
{ lib
, stdenv
, fetchurl
, withShishi ? !stdenv.hostPlatform.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=";
};
# krb5context test uses certificates that expired on 2024-07-11.
# Reported to bug-gss@gnu.org with Message-ID: <87cyngavtt.fsf@alyssa.is>.
postPatch = ''
rm tests/krb5context.c
'';
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.hostPlatform.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
# 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";
mainProgram = "gss";
2015-05-02 11:11:47 +00:00
license = licenses.gpl3Plus;
maintainers = [ ];
2015-05-02 11:11:47 +00:00
platforms = platforms.all;
};
}