2023-02-08 18:35:43 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, withShishi ? !stdenv.isDarwin
|
|
|
|
, shishi
|
2015-05-02 11:11:47 +00:00
|
|
|
}:
|
2010-04-26 08:59:25 +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";
|
2010-04-26 08:59:25 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-11-09 22:12:55 +00:00
|
|
|
url = "mirror://gnu/gss/gss-${version}.tar.gz";
|
2023-02-08 18:35:43 +00:00
|
|
|
hash = "sha256-7M6r3vTK4/znIYsuy4PrQifbpEtTthuMKy6IrgJBnHM=";
|
2010-04-26 08:59:25 +00:00
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
buildInputs = lib.optional withShishi shishi;
|
2010-05-20 13:00:30 +00:00
|
|
|
|
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 = [
|
2021-10-25 19:11:45 +00:00
|
|
|
"--${if withShishi then "enable" else "disable"}-kerberos5"
|
2015-05-02 11:11:47 +00:00
|
|
|
];
|
2010-04-26 08:59:25 +00:00
|
|
|
|
2015-05-02 11:11:47 +00:00
|
|
|
doCheck = true;
|
2010-04-26 08:59:25 +00:00
|
|
|
|
2015-05-02 11:11:47 +00:00
|
|
|
# Fixup .la files
|
2021-01-21 17:00:13 +00:00
|
|
|
postInstall = lib.optionalString withShishi ''
|
2015-05-02 11:11:47 +00:00
|
|
|
sed -i 's,\(-lshishi\),-L${shishi}/lib \1,' $out/lib/libgss.la
|
|
|
|
'';
|
2010-04-26 08:59:25 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.gnu.org/software/gss/";
|
2015-05-02 11:11:47 +00:00
|
|
|
description = "Generic Security Service";
|
|
|
|
license = licenses.gpl3Plus;
|
2022-06-23 00:10:30 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2015-05-02 11:11:47 +00:00
|
|
|
platforms = platforms.all;
|
2010-04-26 08:59:25 +00:00
|
|
|
};
|
|
|
|
}
|