From f2b35b7625a83c5f7987ae424223665af1570565 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Thu, 28 Sep 2023 23:36:01 +0200 Subject: [PATCH] cargo-i18n: fix build on darwin --- pkgs/by-name/ca/cargo-i18n/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/ca/cargo-i18n/package.nix b/pkgs/by-name/ca/cargo-i18n/package.nix index 3d43b955e87f..158d22f97b03 100644 --- a/pkgs/by-name/ca/cargo-i18n/package.nix +++ b/pkgs/by-name/ca/cargo-i18n/package.nix @@ -1,6 +1,8 @@ { lib , rustPlatform , fetchFromGitHub +, stdenv +, darwin }: rustPlatform.buildRustPackage rec { @@ -16,6 +18,10 @@ rustPlatform.buildRustPackage rec { cargoHash = "sha256-nvZx2wJDs7PZQLCl8Hrf2blR+lNUBVr6k664VSVQ5iI="; + buildInputs = lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.Foundation + ]; + cargoTestFlags = [ "--lib" ]; meta = with lib; {