2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
2021-10-25 19:11:45 +00:00
|
|
|
, 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";
|
|
|
|
version = "1.0.3";
|
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";
|
2015-05-31 04:25:13 +00:00
|
|
|
sha256 = "1syyvh3k659xf1hdv9pilnnhbbhs6vfapayp4xgdcc8mfgf9v4gz";
|
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
|
|
|
|
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;
|
2019-01-26 10:01:09 +00:00
|
|
|
maintainers = with maintainers; [ bjg ];
|
2015-05-02 11:11:47 +00:00
|
|
|
platforms = platforms.all;
|
2010-04-26 08:59:25 +00:00
|
|
|
};
|
|
|
|
}
|