2024-07-27 06:49:29 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitLab,
|
|
|
|
autoreconfHook,
|
|
|
|
libkrb5,
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "libgssglue";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "gsasl";
|
|
|
|
repo = "libgssglue";
|
|
|
|
rev = "tags/libgssglue-${finalAttrs.version}";
|
|
|
|
hash = "sha256-p9dujLklv2ZC1YA1gKGCRJf9EvF3stv5v4Z/5m1nSeM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postPatch = ''
|
2024-07-27 06:49:29 +00:00
|
|
|
touch ChangeLog
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
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-04-05 15:23:46 +00:00
|
|
|
${libkrb5}/lib/libgssapi_krb5.so mechglue_internal_krb5_init
|
2020-04-24 23:36:52 +00:00
|
|
|
EOF
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://www.citi.umich.edu/projects/nfsv4/linux/";
|
|
|
|
description = "Exports a gssapi interface which calls other random gssapi libraries";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ corngood ];
|
|
|
|
};
|
2024-07-27 06:49:29 +00:00
|
|
|
})
|