rage: fix macOS build (#106051)

Without the explicit Foundation dep, linker fails with this message:
```
  = note: ld: framework not found Foundation
          clang-7: error: linker command failed with exit code 1 (use -v to see invocation)
          

error: aborting due to previous error

error: could not compile `i18n-embed-fl`
```

Co-authored-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
This commit is contained in:
Marin
2020-12-06 10:26:39 -05:00
committed by GitHub
co-authored by Dmitry Kalinkin
parent 6c94fd93bc
commit 3d629ef723
2 changed files with 9 additions and 3 deletions
+6 -2
View File
@@ -1,4 +1,5 @@
{ stdenv, rustPlatform, fetchFromGitHub, installShellFiles, darwin }:
{ stdenv, rustPlatform, fetchFromGitHub, installShellFiles
, Foundation, Security }:
rustPlatform.buildRustPackage rec {
pname = "rage";
@@ -15,7 +16,10 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ installShellFiles ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [
Foundation
Security
];
postBuild = ''
cargo run --example generate-docs