gx-go: fix version; enable structuredAttrs, version check

This commit is contained in:
coolcuber
2026-08-22 22:40:28 -04:00
parent 7ca2fc2f43
commit b18f1a3868

View File

@@ -2,11 +2,14 @@
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
}:
buildGoModule {
pname = "gx-go";
version = "unstable-2020-03-03";
version = "1.9.0-unstable-2020-03-03";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "whyrusleeping";
@@ -22,6 +25,12 @@ buildGoModule {
"-w"
];
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
preVersionCheck = ''
export version="1.9.0"
'';
meta = {
description = "Tool for importing go packages into gx";
mainProgram = "gx-go";