aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nix/package.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/nix/package.nix b/nix/package.nix
index 939fff9b..969d17fa 100644
--- a/nix/package.nix
+++ b/nix/package.nix
@@ -26,6 +26,10 @@ let
'') entries}
'';
};
+ darwinToolchain = lib.optionals stdenv.hostPlatform.isDarwin [
+ cctools
+ xcbuild
+ ];
in
rustPlatform.buildRustPackage {
pname = "herdr";
@@ -55,11 +59,7 @@ rustPlatform.buildRustPackage {
nativeBuildInputs = [
git
pkg-config
- ]
- ++ lib.optionals stdenv.hostPlatform.isDarwin [
- cctools
- xcbuild
- ];
+ ] ++ darwinToolchain;
env = {
LIBGHOSTTY_VT_OPTIMIZE = "ReleaseFast";