File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change 77
88buildGoModule 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 } ;
You can’t perform that action at this time.
0 commit comments