mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
gx-go: fix version; enable structuredAttrs, version check
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user