cargo-i18n: fix build on darwin

This commit is contained in:
Weijia Wang 2023-09-28 23:36:01 +02:00
parent e6cad8da44
commit f2b35b7625

View File

@ -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; {