balena-cli: Fix darwin build

This commit is contained in:
Doron Behar 2023-08-31 09:30:27 +03:00
parent 658e71cd9f
commit 7afe4e3282

View File

@ -7,6 +7,7 @@
, nodePackages
, python3
, udev
, darwin
}:
buildNpmPackage rec {
@ -30,10 +31,15 @@ buildNpmPackage rec {
nativeBuildInputs = [
nodePackages.node-gyp
python3
] ++ lib.optionals stdenv.isDarwin [
darwin.cctools
];
buildInputs = lib.optionals (!stdenv.isDarwin) [
buildInputs = lib.optionals stdenv.isLinux [
udev
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Foundation
darwin.apple_sdk.frameworks.Cocoa
];
passthru.tests.version = testers.testVersion {