devserver: fix build on darwin (#146530)
commitbe6b1ae5f6e00aae0aa491f0cc54d4c9f97a8eff
authorSebastián Mancilla <238528+smancill@users.noreply.github.com>
dateThu 18 Nov 2021, 18:30 (5 years ago)
parentb86b089
pkgs/development/tools/rust/devserver/default.nix+3−1
@@ -1,8 +1,10 @@
11{ lib
2+, stdenv
23, fetchCrate
34, rustPlatform
45, openssl
56, pkg-config
7+, CoreServices
68}:
79
810rustPlatform.buildRustPackage rec {
@@ -16,7 +18,7 @@ rustPlatform.buildRustPackage rec {
1618
1719 nativeBuildInputs = [ pkg-config ];
1820
19− buildInputs = [ openssl ];
21+ buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin CoreServices;
2022
2123 cargoSha256 = "sha256-XlrQ6CvjeWnzvfaeNbe8FtMXMVSQNLxDVIEjyHm57Js=";
2224
pkgs/top-level/all-packages.nix+3−1
@@ -12914,7 +12914,9 @@ with pkgs;
1291412914 inherit (darwin.apple_sdk.frameworks) Security;
1291512915 };
1291612916
12917− devserver = callPackage ../development/tools/rust/devserver { };
12917+ devserver = callPackage ../development/tools/rust/devserver {
12918+ inherit (darwin.apple_sdk.frameworks) CoreServices;
12919+ };
1291812920
1291912921 maturin = callPackage ../development/tools/rust/maturin {
1292012922 inherit (darwin.apple_sdk.frameworks) Security;