cargo-watch: move NIX_LDFLAGS into env for structuredAttrs
This commit is contained in:
@@ -18,10 +18,12 @@ rustPlatform.buildRustPackage rec {
|
||||
|
||||
cargoHash = "sha256-4AVZ747d6lOjxHN+co0A7APVB5Xj6g5p/Al5fLbgPnc=";
|
||||
|
||||
NIX_LDFLAGS = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [
|
||||
"-framework"
|
||||
"AppKit"
|
||||
];
|
||||
env = lib.optionalAttrs (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) {
|
||||
NIX_LDFLAGS = toString [
|
||||
"-framework"
|
||||
"AppKit"
|
||||
];
|
||||
};
|
||||
|
||||
# `test with_cargo` tries to call cargo-watch as a cargo subcommand
|
||||
# (calling cargo-watch with command `cargo watch`)
|
||||
|
||||
Reference in New Issue
Block a user