fix(tvix/shell): fix cargo build on MacOS
It looks like we need Security Framework in the shell to be able to imperatively run `cargo build`. Change-Id: Ia5df9052bafca3610d4ed235b180b812d33d0d15 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9756 Tested-by: BuildkiteCI Reviewed-by: Connor Brewster <cbrewster@hey.com> Autosubmit: flokli <flokli@flokli.de>
This commit is contained in:
parent
652afd21b3
commit
6aa8a1a8ea
1 changed files with 6 additions and 4 deletions
|
@ -12,9 +12,6 @@
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
|
||||||
iconvDarwinDep = pkgs.lib.optionals pkgs.stdenv.isDarwin [ pkgs.libiconv ];
|
|
||||||
in
|
|
||||||
pkgs.mkShell {
|
pkgs.mkShell {
|
||||||
name = "tvix-rust-dev-env";
|
name = "tvix-rust-dev-env";
|
||||||
packages = [
|
packages = [
|
||||||
|
@ -29,5 +26,10 @@ pkgs.mkShell {
|
||||||
pkgs.rustc
|
pkgs.rustc
|
||||||
pkgs.rustfmt
|
pkgs.rustfmt
|
||||||
pkgs.protobuf
|
pkgs.protobuf
|
||||||
] ++ iconvDarwinDep;
|
] ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [
|
||||||
|
# We need these two dependencies in the ambient environment to be able to
|
||||||
|
# `cargo build` on MacOS.
|
||||||
|
pkgs.libiconv
|
||||||
|
pkgs.buildPackages.darwin.apple_sdk.frameworks.Security
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue