diff options
Diffstat (limited to 'pkgs/tools/admin/balena-cli/default.nix')
-rw-r--r-- | pkgs/tools/admin/balena-cli/default.nix | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/pkgs/tools/admin/balena-cli/default.nix b/pkgs/tools/admin/balena-cli/default.nix deleted file mode 100644 index 936cfaec1e98..000000000000 --- a/pkgs/tools/admin/balena-cli/default.nix +++ /dev/null @@ -1,75 +0,0 @@ -{ lib -, stdenv -, buildNpmPackage -, overrideSDK -, fetchFromGitHub -, testers -, balena-cli -, node-gyp -, python3 -, udev -, cctools -, darwin -}: - -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 = "19.0.12"; - - src = fetchFromGitHub { - owner = "balena-io"; - repo = "balena-cli"; - rev = "v${version}"; - hash = "sha256-/C83s66vTq60FLfKPb27RBGfBC295qs5WWej9Yz4Cak="; - }; - - npmDepsHash = "sha256-CdbJqMbBYzy9TfhlXVMJgGr3pLVMX4naRs/rGz96bYo="; - - postPatch = '' - ln -s npm-shrinkwrap.json package-lock.json - ''; - makeCacheWritable = true; - - nativeBuildInputs = [ - node-gyp - python3 - ] ++ lib.optionals stdenv.isDarwin [ - cctools - ]; - - 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 { - package = balena-cli; - command = '' - # Override default cache directory so Balena CLI's unavoidable update check does not fail due to write permissions - BALENARC_DATA_DIRECTORY=./ balena --version - ''; - inherit version; - }; - - meta = with lib; { - description = "Command line interface for balenaCloud or openBalena"; - longDescription = '' - The balena CLI is a Command Line Interface for balenaCloud or openBalena. It is a software - tool available for Windows, macOS and Linux, used through a command prompt / terminal window. - It can be used interactively or invoked in scripts. The balena CLI builds on the balena API - and the balena SDK, and can also be directly imported in Node.js applications. - ''; - 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 ]; - mainProgram = "balena"; - }; -} |