nixpkgs/pkgs/development/libraries/libgssglue/default.nix

30 lines
835 B
Nix
Raw Normal View History

2021-03-14 16:11:48 +00:00
{ lib, stdenv, fetchurl, libkrb5 }:
2017-11-21 23:43:42 +00:00
stdenv.mkDerivation rec {
name = "libgssglue-0.4";
src = fetchurl {
url = "http://www.citi.umich.edu/projects/nfsv4/linux/libgssglue/${name}.tar.gz";
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 16:11:48 +00:00
${libkrb5}/lib/libgssapi_krb5.so mechglue_internal_krb5_init
2017-11-21 23:43:42 +00:00
EOF
'';
meta = with lib; {
homepage = "http://www.citi.umich.edu/projects/nfsv4/linux/";
2017-11-21 23:43:42 +00:00
description = "Exports a gssapi interface which calls other random gssapi libraries";
license = licenses.bsd3;
platforms = platforms.linux;
2017-11-21 23:43:42 +00:00
maintainers = with maintainers; [ corngood ];
};
}