depot/third_party/nixpkgs/pkgs/development/libraries/libgssglue/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

29 lines
839 B
Nix

{ stdenv, fetchurl, kerberos }:
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
${kerberos}/lib/libgssapi_krb5.so mechglue_internal_krb5_init
EOF
'';
meta = with stdenv.lib; {
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 ];
};
}