devserver: fix build on darwin (#146530)

This commit is contained in:
Sebastián Mancilla 2021-11-18 18:30:41 -03:00 committed by GitHub
parent b86b089c72
commit be6b1ae5f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -1,8 +1,10 @@
{ lib
, stdenv
, fetchCrate
, rustPlatform
, openssl
, pkg-config
, CoreServices
}:
rustPlatform.buildRustPackage rec {
@ -16,7 +18,7 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin CoreServices;
cargoSha256 = "sha256-XlrQ6CvjeWnzvfaeNbe8FtMXMVSQNLxDVIEjyHm57Js=";

View file

@ -12914,7 +12914,9 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Security;
};
devserver = callPackage ../development/tools/rust/devserver { };
devserver = callPackage ../development/tools/rust/devserver {
inherit (darwin.apple_sdk.frameworks) CoreServices;
};
maturin = callPackage ../development/tools/rust/maturin {
inherit (darwin.apple_sdk.frameworks) Security;