Merge branch 'feature/fix-build-rust-create-darwin' of git://github.com/marsam/nixpkgs
Set target_os properly on darwin.
This commit is contained in:
commit
cb692ff813
@ -101,7 +101,7 @@ let makeDeps = dependencies:
|
|||||||
export CARGO_PKG_AUTHORS="${authors}"
|
export CARGO_PKG_AUTHORS="${authors}"
|
||||||
|
|
||||||
export CARGO_CFG_TARGET_ARCH=${buildPlatform.parsed.cpu.name}
|
export CARGO_CFG_TARGET_ARCH=${buildPlatform.parsed.cpu.name}
|
||||||
export CARGO_CFG_TARGET_OS=${buildPlatform.parsed.kernel.name}
|
export CARGO_CFG_TARGET_OS=${if buildPlatform.isDarwin then "macos" else buildPlatform.parsed.kernel.name}
|
||||||
export CARGO_CFG_TARGET_FAMILY="unix"
|
export CARGO_CFG_TARGET_FAMILY="unix"
|
||||||
export CARGO_CFG_UNIX=1
|
export CARGO_CFG_UNIX=1
|
||||||
export CARGO_CFG_TARGET_ENV="gnu"
|
export CARGO_CFG_TARGET_ENV="gnu"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user