Loading pkgs/tools/admin/balena-cli/default.nix +33 −31 Original line number Diff line number Diff line { lib , stdenv , buildNpmPackage , overrideSDK , fetchFromGitHub , testers , balena-cli , node-gyp , python3 , udev , cctools , darwin { lib, stdenv, buildNpmPackage, fetchFromGitHub, testers, balena-cli, node-gyp, python3, udev, cctools, 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"; Loading @@ -35,18 +31,21 @@ in buildNpmPackage' rec { ''; makeCacheWritable = true; nativeBuildInputs = [ nativeBuildInputs = [ node-gyp python3 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ cctools ]; buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ udev ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Foundation darwin.apple_sdk.frameworks.Cocoa ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_12 ]; passthru.tests.version = testers.testVersion { Loading @@ -69,7 +68,10 @@ in buildNpmPackage' rec { homepage = "https://github.com/balena-io/balena-cli"; changelog = "https://github.com/balena-io/balena-cli/blob/v${version}/CHANGELOG.md"; license = licenses.asl20; maintainers = [ maintainers.kalebpace maintainers.doronbehar ]; maintainers = [ maintainers.kalebpace maintainers.doronbehar ]; mainProgram = "balena"; }; } Loading
pkgs/tools/admin/balena-cli/default.nix +33 −31 Original line number Diff line number Diff line { lib , stdenv , buildNpmPackage , overrideSDK , fetchFromGitHub , testers , balena-cli , node-gyp , python3 , udev , cctools , darwin { lib, stdenv, buildNpmPackage, fetchFromGitHub, testers, balena-cli, node-gyp, python3, udev, cctools, 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"; Loading @@ -35,18 +31,21 @@ in buildNpmPackage' rec { ''; makeCacheWritable = true; nativeBuildInputs = [ nativeBuildInputs = [ node-gyp python3 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ cctools ]; buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ udev ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Foundation darwin.apple_sdk.frameworks.Cocoa ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk_12 ]; passthru.tests.version = testers.testVersion { Loading @@ -69,7 +68,10 @@ in buildNpmPackage' rec { homepage = "https://github.com/balena-io/balena-cli"; changelog = "https://github.com/balena-io/balena-cli/blob/v${version}/CHANGELOG.md"; license = licenses.asl20; maintainers = [ maintainers.kalebpace maintainers.doronbehar ]; maintainers = [ maintainers.kalebpace maintainers.doronbehar ]; mainProgram = "balena"; }; }