diff --git a/pkgs/development/libraries/glew/1.10.nix b/pkgs/development/libraries/glew/1.10.nix index 8500a54f970c..b2e1b26704f3 100644 --- a/pkgs/development/libraries/glew/1.10.nix +++ b/pkgs/development/libraries/glew/1.10.nix @@ -19,7 +19,7 @@ stdenv.mkDerivation rec { patchPhase = '' sed -i 's|lib64|lib|' config/Makefile.linux - ${optionalString (stdenv ? cross) '' + ${optionalString (hostPlatform != buildPlatform) '' sed -i -e 's/\(INSTALL.*\)-s/\1/' Makefile ''} '';