Skip to content

Commit 24a395a

Browse files
authored
natscli: 0.1.6 -> 0.2.0 (#395407)
2 parents 72b5b11 + d183f42 commit 24a395a

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

pkgs/by-name/na/natscli/package.nix

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,40 @@
77

88
buildGoModule rec {
99
pname = "natscli";
10-
version = "0.1.6";
10+
version = "0.2.0";
1111

1212
src = fetchFromGitHub {
1313
owner = "nats-io";
1414
repo = "natscli";
1515
tag = "v${version}";
16-
hash = "sha256-kdoBHTJq/Sj27BOD4NFDVpMlywG5H7vGRS6uUbPscOY=";
16+
hash = "sha256-Ya3nNgPa9MEiDDwoBv8oXi7+Hji9fhUNIm55jJ6w++8=";
1717
};
1818

19-
vendorHash = "sha256-RM0PskgKT+n2EQkoIwIbCAwh03TLdcwj7g8AjXBeZPY=";
19+
vendorHash = "sha256-NLsIX0B2YKGNWeAuKIQUs/2sXokUr6PYO5qvvfbbN1Y=";
2020

2121
ldflags = [
22-
"-X main.version=${version}"
22+
"-s"
23+
"-w"
24+
"-X=main.version=${version}"
2325
];
2426

2527
nativeInstallCheckInputs = [ versionCheckHook ];
28+
29+
preCheck = ''
30+
# Remove tests that depend on CLI output
31+
substituteInPlace internal/asciigraph/asciigraph_test.go \
32+
--replace-fail "TestPlot" "SkipPlot"
33+
'';
34+
2635
doInstallCheck = true;
36+
2737
versionCheckProgram = "${placeholder "out"}/bin/nats";
2838

2939
meta = with lib; {
3040
description = "NATS Command Line Interface";
3141
homepage = "https://github.com/nats-io/natscli";
3242
changelog = "https://github.com/nats-io/natscli/releases/tag/v${version}";
33-
license = with licenses; [ asl20 ];
43+
license = licenses.asl20;
3444
maintainers = with maintainers; [ fab ];
3545
mainProgram = "nats";
3646
};

0 commit comments

Comments
 (0)