Loading pkgs/by-name/ba/balena-cli/package.nix +18 −10 Original line number Diff line number Diff line Loading @@ -3,51 +3,59 @@ stdenv, buildNpmPackage, fetchFromGitHub, nodejs_20, nodejs_latest, versionCheckHook, node-gyp, python3, udev, cctools, xcbuild, }: let buildNpmPackage' = buildNpmPackage.override { nodejs = nodejs_20; nodejs = nodejs_latest; }; node-gyp' = node-gyp.override { nodejs = nodejs_20; nodejs = nodejs_latest; }; in buildNpmPackage' rec { pname = "balena-cli"; version = "22.4.13"; version = "23.2.0"; src = fetchFromGitHub { owner = "balena-io"; repo = "balena-cli"; rev = "v${version}"; hash = "sha256-nke7EQscVPu1A/d4DKi7pSb6/MQgeFtG+zhMZT+bhWk="; hash = "sha256-T4eOiFpU17vAwAM02gwJq93ZtJQUC7bv0CCFpj4NKEA="; }; npmDepsHash = "sha256-GQXbXkOt8nkOB2OeEcKsp1yJd5lXS+KKout/5ffLgD0="; npmDepsHash = "sha256-kRkc3o8xmROlH17GI3yoGvMwEweHrLeGpvW3rH0wOSU="; makeCacheWritable = true; nativeBuildInputs = [ node-gyp' python3 versionCheckHook ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ cctools xcbuild ]; buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ udev ]; doInstallCheck = true; nativeInstallCheckInputs = [ versionCheckHook ]; # Disabled on Darwin due to: # # https://github.com/NixOS/nix/issues/5748 # # No matter whether $TMP and $HOME point to real writable directories, the # Darwin sandbox tries to use /var/empty and fails. doInstallCheck = !stdenv.hostPlatform.isDarwin; versionCheckProgram = "${placeholder "out"}/bin/balena"; meta = { Loading Loading
pkgs/by-name/ba/balena-cli/package.nix +18 −10 Original line number Diff line number Diff line Loading @@ -3,51 +3,59 @@ stdenv, buildNpmPackage, fetchFromGitHub, nodejs_20, nodejs_latest, versionCheckHook, node-gyp, python3, udev, cctools, xcbuild, }: let buildNpmPackage' = buildNpmPackage.override { nodejs = nodejs_20; nodejs = nodejs_latest; }; node-gyp' = node-gyp.override { nodejs = nodejs_20; nodejs = nodejs_latest; }; in buildNpmPackage' rec { pname = "balena-cli"; version = "22.4.13"; version = "23.2.0"; src = fetchFromGitHub { owner = "balena-io"; repo = "balena-cli"; rev = "v${version}"; hash = "sha256-nke7EQscVPu1A/d4DKi7pSb6/MQgeFtG+zhMZT+bhWk="; hash = "sha256-T4eOiFpU17vAwAM02gwJq93ZtJQUC7bv0CCFpj4NKEA="; }; npmDepsHash = "sha256-GQXbXkOt8nkOB2OeEcKsp1yJd5lXS+KKout/5ffLgD0="; npmDepsHash = "sha256-kRkc3o8xmROlH17GI3yoGvMwEweHrLeGpvW3rH0wOSU="; makeCacheWritable = true; nativeBuildInputs = [ node-gyp' python3 versionCheckHook ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ cctools xcbuild ]; buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ udev ]; doInstallCheck = true; nativeInstallCheckInputs = [ versionCheckHook ]; # Disabled on Darwin due to: # # https://github.com/NixOS/nix/issues/5748 # # No matter whether $TMP and $HOME point to real writable directories, the # Darwin sandbox tries to use /var/empty and fails. doInstallCheck = !stdenv.hostPlatform.isDarwin; versionCheckProgram = "${placeholder "out"}/bin/balena"; meta = { Loading