Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(nix) missing frameworks on darwin #1724

Merged
merged 1 commit into from
Oct 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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