csound: fix cross with gettext hack

We need to ignore gettext in CMAKE_PREFIX_PATH on cross to prevent
`find_program` from picking up the wrong gettext. See the `webkitgtk`
and `fish` derivations for similar hacks (though this really should
eventually be fixed at a lower level). The wrong gettext in this case is
getting pulled in via:
csound(host) -> fluidsynth(host) -> glib(host) -> gettext(host)

+3 -1
+3 -1
pkgs/applications/audio/csound/default.nix
··· 31 31 }; 32 32 33 33 cmakeFlags = [ "-DBUILD_CSOUND_AC=0" ] # fails to find Score.hpp 34 - ++ lib.optional stdenv.isDarwin "-DCS_FRAMEWORK_DEST=${placeholder "out"}/lib"; 34 + ++ lib.optional stdenv.isDarwin "-DCS_FRAMEWORK_DEST=${placeholder "out"}/lib" 35 + # Ignore gettext in CMAKE_PREFIX_PATH on cross to prevent find_program picking up the wrong gettext 36 + ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "-DCMAKE_IGNORE_PATH=${lib.getBin gettext}/bin"; 35 37 36 38 nativeBuildInputs = [ cmake flex bison gettext ]; 37 39 buildInputs = [ libsndfile libsamplerate boost ]