gsasl: fix build on Darwin (close #2260, fixes #2259)

@vcunat rewrote with "more standard" optional functions.
This commit is contained in:
John Wiegley 2014-04-14 14:24:24 -05:00 committed by Vladimír Čunát
parent 8340454544
commit 84dae6fe28

View File

@ -8,7 +8,10 @@ stdenv.mkDerivation rec {
sha256 = "1rci64cxvcfr8xcjpqc4inpfq7aw4snnsbf5xz7d30nhvv8n40ii";
};
buildInputs = [ gss libidn ];
buildInputs = [ libidn ]
++ stdenv.lib.optional (!stdenv.isDarwin) gss;
configureFlags = stdenv.lib.optionalString stdenv.isDarwin "--with-gssapi-impl=mit";
doCheck = true;