Merge pull request #269720 from szlend/fix-cargo-watch-darwin
cargo-watch: fix build on darwin
This commit is contained in:
commit
55103bf2a8
2 changed files with 5 additions and 5 deletions
|
@ -3,9 +3,7 @@
|
||||||
, rustPlatform
|
, rustPlatform
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, Cocoa
|
, Cocoa
|
||||||
, CoreServices
|
|
||||||
, Foundation
|
, Foundation
|
||||||
, libiconv
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
|
@ -21,7 +19,9 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
cargoHash = "sha256-0D+aM/zap5UDQ+k9c/p+ZfN1OUjDzFRArvcmqEOcBbM=";
|
cargoHash = "sha256-0D+aM/zap5UDQ+k9c/p+ZfN1OUjDzFRArvcmqEOcBbM=";
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.isDarwin [ Cocoa CoreServices Foundation libiconv ];
|
buildInputs = lib.optionals stdenv.isDarwin [ Foundation Cocoa ];
|
||||||
|
|
||||||
|
NIX_LDFLAGS = lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ "-framework" "AppKit" ];
|
||||||
|
|
||||||
# `test with_cargo` tries to call cargo-watch as a cargo subcommand
|
# `test with_cargo` tries to call cargo-watch as a cargo subcommand
|
||||||
# (calling cargo-watch with command `cargo watch`)
|
# (calling cargo-watch with command `cargo watch`)
|
||||||
|
|
|
@ -17148,8 +17148,8 @@ with pkgs;
|
||||||
cargo-wasi = callPackage ../development/tools/rust/cargo-wasi {
|
cargo-wasi = callPackage ../development/tools/rust/cargo-wasi {
|
||||||
inherit (darwin.apple_sdk.frameworks) Security;
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
};
|
};
|
||||||
cargo-watch = darwin.apple_sdk_11_0.callPackage ../development/tools/rust/cargo-watch {
|
cargo-watch = callPackage ../development/tools/rust/cargo-watch {
|
||||||
inherit (darwin.apple_sdk_11_0.frameworks) Cocoa CoreServices Foundation;
|
inherit (darwin.apple_sdk.frameworks) Foundation Cocoa;
|
||||||
};
|
};
|
||||||
cargo-wipe = callPackage ../development/tools/rust/cargo-wipe { };
|
cargo-wipe = callPackage ../development/tools/rust/cargo-wipe { };
|
||||||
cargo-workspaces = callPackage ../development/tools/rust/cargo-workspaces { };
|
cargo-workspaces = callPackage ../development/tools/rust/cargo-workspaces { };
|
||||||
|
|
Loading…
Reference in a new issue