20 src = fetchFromGitHub {
24 hash = "sha256-2U+P3LsxaRpktNbDn8iNhHQVjokiWZADYVDpJsDosZU=";
27 npmDepsHash = "sha256-CA6qs9Gk19dEK2yCFMVVKmJSoZVLdpnf4V6P5fv2Bcc=";
30 ln -s npm-shrinkwrap.json package-lock.json
32 makeCacheWritable = true;
39 ++ lib.optionals stdenv.hostPlatform.isDarwin [
44 lib.optionals stdenv.hostPlatform.isLinux [
47 ++ lib.optionals stdenv.hostPlatform.isDarwin [
51 passthru.tests.version = testers.testVersion {
54 # Override default cache directory so Balena CLI's unavoidable update check does not fail due to write permissions
55 BALENARC_DATA_DIRECTORY=./ balena --version
61 description = "Command line interface for balenaCloud or openBalena";
63 The balena CLI is a Command Line Interface for balenaCloud or openBalena. It is a software
64 tool available for Windows, macOS and Linux, used through a command prompt / terminal window.
65 It can be used interactively or invoked in scripts. The balena CLI builds on the balena API
66 and the balena SDK, and can also be directly imported in Node.js applications.
68 homepage = "https://github.com/balena-io/balena-cli";
69 changelog = "https://github.com/balena-io/balena-cli/blob/v${version}/CHANGELOG.md";
70 license = licenses.asl20;
73 maintainers.doronbehar
75 mainProgram = "balena";