2021-03-14 17:11:48 +01:00
|
|
|
{ lib, stdenv, fetchurl, libkrb5 }:
|
2017-11-22 00:43:42 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-06-22 15:21:29 +02:00
|
|
|
pname = "libgssglue";
|
|
|
|
version = "0.4";
|
2017-11-22 00:43:42 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-22 15:21:29 +02:00
|
|
|
url = "http://www.citi.umich.edu/projects/nfsv4/linux/libgssglue/${pname}-${version}.tar.gz";
|
2017-11-22 00:43:42 +01:00
|
|
|
sha256 = "0fh475kxzlabwz30wz3bf7i8kfqiqzhfahayx3jj79rba1sily9z";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed s:/etc/gssapi_mech.conf:$out/etc/gssapi_mech.conf: -i src/g_initialize.c
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/etc
|
|
|
|
cat <<EOF > $out/etc/gssapi_mech.conf
|
2021-03-14 17:11:48 +01:00
|
|
|
${libkrb5}/lib/libgssapi_krb5.so mechglue_internal_krb5_init
|
2017-11-22 00:43:42 +01:00
|
|
|
EOF
|
|
|
|
'';
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.citi.umich.edu/projects/nfsv4/linux/";
|
2017-11-22 00:43:42 +01:00
|
|
|
description = "Exports a gssapi interface which calls other random gssapi libraries";
|
|
|
|
license = licenses.bsd3;
|
2019-06-06 04:57:51 +02:00
|
|
|
platforms = platforms.linux;
|
2017-11-22 00:43:42 +01:00
|
|
|
maintainers = with maintainers; [ corngood ];
|
|
|
|
};
|
|
|
|
}
|