From 895c3e3756f73121db46c90e594dbd53a81e849f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Pitucha?= Date: Thu, 20 Oct 2022 15:24:10 +1100 Subject: [PATCH] dioxus-cli: fix darwin build --- pkgs/development/tools/rust/dioxus-cli/default.nix | 4 ++-- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/rust/dioxus-cli/default.nix b/pkgs/development/tools/rust/dioxus-cli/default.nix index 40cef21c476..b1756e62ee6 100644 --- a/pkgs/development/tools/rust/dioxus-cli/default.nix +++ b/pkgs/development/tools/rust/dioxus-cli/default.nix @@ -1,4 +1,4 @@ -{ fetchCrate, lib, rustPlatform, openssl, pkg-config }: +{ lib, fetchCrate, rustPlatform, openssl, pkg-config, stdenv, CoreServices }: rustPlatform.buildRustPackage rec { pname = "dioxus-cli"; version = "0.1.4"; @@ -9,7 +9,7 @@ rustPlatform.buildRustPackage rec { }; nativeBuildInputs = [ pkg-config ]; - buildInputs = [ openssl ]; + buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ CoreServices ]; cargoSha256 = "sha256-Mf/WtOO/vFuhg90DoPDwOZ6XKj423foHZ8vHugXakb0="; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2219e2502fb..ad28e6378f4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16623,7 +16623,9 @@ with pkgs; dive = callPackage ../development/tools/dive { }; - dioxus-cli = callPackage ../development/tools/rust/dioxus-cli { }; + dioxus-cli = callPackage ../development/tools/rust/dioxus-cli { + inherit (darwin.apple_sdk.frameworks) CoreServices; + }; doclifter = callPackage ../development/tools/misc/doclifter { };