balena-cli: fix darwin build

This commit is contained in:
Doron Behar 2023-12-25 13:24:13 +02:00
parent 3465e1aa80
commit 40b8d88dd5

View File

@ -1,6 +1,7 @@
{ lib
, stdenv
, buildNpmPackage
, overrideSDK
, fetchFromGitHub
, testers
, balena-cli
@ -10,7 +11,12 @@
, darwin
}:
buildNpmPackage rec {
let
# Fix for: https://github.com/NixOS/nixpkgs/issues/272156
buildNpmPackage' = buildNpmPackage.override {
stdenv = if stdenv.isDarwin then overrideSDK stdenv "11.0" else stdenv;
};
in buildNpmPackage' rec {
pname = "balena-cli";
version = "17.4.9";