Skip to content

Commit

Permalink
buildRustCrate: Set target_os to "macos" on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
marsam committed Feb 23, 2018
1 parent eb05f92 commit bdf031d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/build-support/rust/build-rust-crate.nix
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ let makeDeps = dependencies:
export CARGO_PKG_AUTHORS="${authors}"
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_UNIX=1
export CARGO_CFG_TARGET_ENV="gnu"
Expand Down

0 comments on commit bdf031d

Please sign in to comment.