2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
2021-12-06 16:07:01 +00:00
|
|
|
, withShishi ? !stdenv.isDarwin, shishi
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "gss";
|
|
|
|
version = "1.0.3";
|
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";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1syyvh3k659xf1hdv9pilnnhbbhs6vfapayp4xgdcc8mfgf9v4gz";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
buildInputs = lib.optional withShishi shishi;
|
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
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
# 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";
|
|
|
|
license = licenses.gpl3Plus;
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|