about summary refs log tree commit diff
path: root/pkgs/development/libraries/nlopt
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/nlopt')
-rw-r--r--pkgs/development/libraries/nlopt/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/nlopt/default.nix b/pkgs/development/libraries/nlopt/default.nix
index 2fae17a23236..4995d98adca7 100644
--- a/pkgs/development/libraries/nlopt/default.nix
+++ b/pkgs/development/libraries/nlopt/default.nix
@@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
     sha256 = "sha256-TgieCX7yUdTAEblzXY/gCN0r6F9TVDh4RdNDjQdXZ1o=";
   };
 
-  nativeBuildInputs = [ cmake ] ++ lib.optionals stdenv.isDarwin [ libiconv ];
+  nativeBuildInputs = [ cmake ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
   buildInputs = [ octave ];
 
   configureFlags = [