Skip to content

Commit

Permalink
fix(nix) missing frameworks on darwin (#1724)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavezac authored Oct 4, 2022
1 parent 9135ece commit 55cd26b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .nix/crate2nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
(import "${crate2nix}/tools.nix" {inherit pkgs;})
generatedCargoNix
;
darwinBuildInputs = pkgs.lib.optionals pkgs.stdenv.isDarwin [
pkgs.darwin.apple_sdk.frameworks.DiskArbitration
pkgs.darwin.apple_sdk.frameworks.Foundation
];

project =
import
Expand All @@ -29,6 +33,10 @@
# Crate dependency overrides go here
zellij = attrs: {
inherit postInstall desktopItems meta name nativeBuildInputs patchPhase;
buildInputs = darwinBuildInputs;
};
sysinfo = attrs: {
buildInputs = darwinBuildInputs;
};
};
};
Expand Down
7 changes: 6 additions & 1 deletion .nix/zellij.nix
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,12 @@ flake-utils.lib.eachSystem [
buildInputs = [
# in order to run tests
pkgs.openssl
];
] ++ (
pkgs.lib.optionals pkgs.stdenv.isDarwin [
pkgs.darwin.apple_sdk.frameworks.DiskArbitration
pkgs.darwin.apple_sdk.frameworks.Foundation
]
);

nativeBuildInputs = [
# for openssl/openssl-sys
Expand Down

0 comments on commit 55cd26b

Please sign in to comment.