python*Packages.gssapi: fixup after splitting libkrb

/cc #29785.
This commit is contained in:
Vladimír Čunát 2017-12-24 11:08:30 +01:00
parent c303047032
commit d54ff360f5
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -11,7 +11,13 @@ buildPythonPackage rec {
sha256 = "1q6ccpz6anl9vggwxdq32wp6xjh2lyfbf7av6jqnmvmyqdfwh3b9";
};
LD_LIBRARY_PATH="${pkgs.krb5Full}/lib";
# It's used to locate headers
postPatch = ''
substituteInPlace setup.py \
--replace "get_output('krb5-config gssapi --prefix')" "'${lib.getDev krb5Full}'"
'';
LD_LIBRARY_PATH = "${pkgs.krb5Full}/lib";
buildInputs = [ krb5Full which nose shouldbe ]
++ ( if stdenv.isDarwin then [ darwin.apple_sdk.frameworks.GSS ] else [ gss ] );