Skip to content

Commit

Permalink
Merge pull request #196874 from viraptor/dioxus-darwin
Browse files Browse the repository at this point in the history
dioxus-cli: fix darwin build
  • Loading branch information
viraptor committed Oct 20, 2022
2 parents 083e8ed + 895c3e3 commit 260eb42
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/tools/rust/dioxus-cli/default.nix
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -9,7 +9,7 @@ rustPlatform.buildRustPackage rec {
};

nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ CoreServices ];

cargoSha256 = "sha256-Mf/WtOO/vFuhg90DoPDwOZ6XKj423foHZ8vHugXakb0=";

Expand Down
4 changes: 3 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };

Expand Down

0 comments on commit 260eb42

Please sign in to comment.