diff --git a/pkgs/development/tools/cargo-web/default.nix b/pkgs/development/tools/cargo-web/default.nix index 06d6697ef965..e350e475f73c 100644 --- a/pkgs/development/tools/cargo-web/default.nix +++ b/pkgs/development/tools/cargo-web/default.nix @@ -1,4 +1,6 @@ -{ stdenv, fetchFromGitHub, openssl, pkgconfig, rustPlatform }: +{ stdenv, fetchFromGitHub, openssl, pkgconfig, rustPlatform +, CoreServices, Security +}: rustPlatform.buildRustPackage rec { name = "cargo-web-${version}"; @@ -14,12 +16,14 @@ rustPlatform.buildRustPackage rec { cargoSha256 = "157av9zkirr00w9v11mh7yp8w36sy7rw6i80i5jmi0mgrdvcg5si"; nativeBuildInputs = [ openssl pkgconfig ]; + buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices Security ]; meta = with stdenv.lib; { description = "A Cargo subcommand for the client-side Web"; homepage = https://github.com/koute/cargo-web; license = with licenses; [asl20 /* or */ mit]; maintainers = [ maintainers.kevincox ]; + broken = stdenv.isDarwin; # test with CoreFoundation 10.11 platforms = platforms.all; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e29c2db3577c..48a7db7ebae3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7181,7 +7181,9 @@ with pkgs; cargo-vendor = callPackage ../build-support/rust/cargo-vendor { }; - cargo-web = callPackage ../development/tools/cargo-web { }; + cargo-web = callPackage ../development/tools/cargo-web { + inherit (darwin.apple_sdk.frameworks) CoreServices Security; + }; carnix = (callPackage ../build-support/rust/carnix.nix { }).carnix { };