devserver: fix build on darwin (#146530)

authored by

Sebastián Mancilla and committed by
GitHub
be6b1ae5 b86b089c

+6 -2
+3 -1
pkgs/development/tools/rust/devserver/default.nix
··· 1 1 { lib 2 + , stdenv 2 3 , fetchCrate 3 4 , rustPlatform 4 5 , openssl 5 6 , pkg-config 7 + , CoreServices 6 8 }: 7 9 8 10 rustPlatform.buildRustPackage rec { ··· 16 18 17 19 nativeBuildInputs = [ pkg-config ]; 18 20 19 - buildInputs = [ openssl ]; 21 + buildInputs = [ openssl ] ++ lib.optional stdenv.isDarwin CoreServices; 20 22 21 23 cargoSha256 = "sha256-XlrQ6CvjeWnzvfaeNbe8FtMXMVSQNLxDVIEjyHm57Js="; 22 24
+3 -1
pkgs/top-level/all-packages.nix
··· 12914 12914 inherit (darwin.apple_sdk.frameworks) Security; 12915 12915 }; 12916 12916 12917 - devserver = callPackage ../development/tools/rust/devserver { }; 12917 + devserver = callPackage ../development/tools/rust/devserver { 12918 + inherit (darwin.apple_sdk.frameworks) CoreServices; 12919 + }; 12918 12920 12919 12921 maturin = callPackage ../development/tools/rust/maturin { 12920 12922 inherit (darwin.apple_sdk.frameworks) Security;