darwin.ICU: avoid platform.darwinMinVersion references on non-darwin

This package isn't expected to work outside of darwin, but must still
evaluate cleanly.
This commit is contained in:
Andrew Childs 2021-04-27 18:36:39 +09:00
parent 7f216a4424
commit e592d342da

View file

@ -59,7 +59,7 @@ appleDerivation {
"DATA_INSTALL_DIR=/share/icu/"
"DATA_LOOKUP_DIR=$(DSTROOT)$(DATA_INSTALL_DIR)"
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # darwin* platform properties are only defined on darwin
# hack to use our lower macos version
"MAC_OS_X_VERSION_MIN_REQUIRED=${formatVersionNumeric stdenv.hostPlatform.darwinMinVersion}"
"ICU_TARGET_VERSION=-m${stdenv.hostPlatform.darwinPlatform}-version-min=${stdenv.hostPlatform.darwinMinVersion}"