2023-02-09 11:40:11 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
2024-09-26 11:04:55 +00:00
|
|
|
, withShishi ? !stdenv.hostPlatform.isDarwin
|
2023-02-09 11:40:11 +00:00
|
|
|
, shishi
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "gss";
|
2023-02-09 11:40:11 +00:00
|
|
|
version = "1.0.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-26 17:43:05 +00:00
|
|
|
url = "mirror://gnu/gss/gss-${version}.tar.gz";
|
2023-02-09 11:40:11 +00:00
|
|
|
hash = "sha256-7M6r3vTK4/znIYsuy4PrQifbpEtTthuMKy6IrgJBnHM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-09-19 14:19:46 +00:00
|
|
|
|
|
|
|
# krb5context test uses certificates that expired on 2024-07-11.
|
|
|
|
# Reported to bug-gss@gnu.org with Message-ID: <87cyngavtt.fsf@alyssa.is>.
|
2024-07-31 10:19:44 +00:00
|
|
|
postPatch = ''
|
|
|
|
rm tests/krb5context.c
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
buildInputs = lib.optional withShishi shishi;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
# ./stdint.h:89:5: error: expected value in expression
|
2024-09-26 11:04:55 +00:00
|
|
|
preConfigure = lib.optionalString stdenv.hostPlatform.isDarwin ''
|
2023-02-09 11:40:11 +00:00
|
|
|
export GNULIBHEADERS_OVERRIDE_WINT_T=0
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
configureFlags = [
|
2021-12-06 16:07:01 +00:00
|
|
|
"--${if withShishi then "enable" else "disable"}-kerberos5"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Fixup .la files
|
2021-02-05 17:12:51 +00:00
|
|
|
postInstall = lib.optionalString withShishi ''
|
2020-04-24 23:36:52 +00:00
|
|
|
sed -i 's,\(-lshishi\),-L${shishi}/lib \1,' $out/lib/libgss.la
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.gnu.org/software/gss/";
|
|
|
|
description = "Generic Security Service";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gss";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|