balena-cli: switch to apple-sdk_12

Upstream is building with macos 12. Looks like 10.15 should be
supported, though.
This commit is contained in:
Austin Horstman
2024-11-01 19:36:41 -05:00
parent 65cac1fc8c
commit 7af650a588
+4 -11
View File
@@ -2,7 +2,6 @@
lib,
stdenv,
buildNpmPackage,
overrideSDK,
fetchFromGitHub,
testers,
balena-cli,
@@ -10,16 +9,11 @@
python3,
udev,
cctools,
darwin,
apple-sdk_12,
darwinMinVersionHook,
}:
let
# Fix for: https://github.com/NixOS/nixpkgs/issues/272156
buildNpmPackage' = buildNpmPackage.override {
stdenv = if stdenv.hostPlatform.isDarwin then overrideSDK stdenv "11.0" else stdenv;
};
in
buildNpmPackage' rec {
buildNpmPackage rec {
pname = "balena-cli";
version = "19.0.13";
@@ -51,8 +45,7 @@ buildNpmPackage' rec {
udev
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.Foundation
darwin.apple_sdk.frameworks.Cocoa
apple-sdk_12
];
passthru.tests.version = testers.testVersion {