Skip to content

Commit

Permalink
gsasl: fix build on Darwin (close #2260, fixes #2259)
Browse files Browse the repository at this point in the history
@vcunat rewrote with "more standard" optional functions.
  • Loading branch information
jwiegley authored and vcunat committed Apr 14, 2014
1 parent 8340454 commit 84dae6f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/development/libraries/gsasl/default.nix
Expand Up @@ -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;

Expand Down

1 comment on commit 84dae6f

@jwiegley
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, thanks @vcunat! I was wondering if there was a more idiomatic way of doing that.

Please sign in to comment.