nhost-cli: 1.31.3 -> 1.42.1

This commit is contained in:
Moraxyc
2026-04-01 22:03:03 +08:00
parent f2e835f48b
commit 90f0af71f2
+11 -6
View File
@@ -2,24 +2,26 @@
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
}:
buildGoModule (finalAttrs: {
pname = "nhost-cli";
version = "1.31.3";
version = "1.42.1";
src = fetchFromGitHub {
owner = "nhost";
repo = "cli";
tag = "v${finalAttrs.version}";
hash = "sha256-hUltJCehmlIDRLdJNGC/Oyjl6rnQHzjxSjrQEaDCdAo=";
repo = "nhost";
tag = "cli@${finalAttrs.version}";
hash = "sha256-n61YgU1/Ad1NMZr/1/jnmuZpN8PemPUW/gomf+ETvRw=";
};
sourceRoot = "${finalAttrs.src.name}/cli";
vendorHash = null;
ldflags = [
"-s"
"-w"
"-X=main.Version=v${finalAttrs.version}"
];
@@ -30,10 +32,13 @@ buildGoModule (finalAttrs: {
# require network access
checkFlags = [ "-skip=^TestMakeJSONRequest$" ];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
meta = {
description = "Tool for setting up a local development environment for Nhost";
homepage = "https://github.com/nhost/cli";
changelog = "https://github.com/nhost/cli/releases/tag/v${finalAttrs.version}";
changelog = "https://github.com/nhost/nhost/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ moraxyc ];
mainProgram = "nhost";