Commit 27aa52ac authored by Benjamin Sparks's avatar Benjamin Sparks
Browse files

natscli: modernize versionCheckHook usage

The binary exposed via mainProgram and the one referenced in versionCheckProgram are the same, so the latter can simply be dropped.
Additionally provide versionCheckProgramArg so that --help isn't needlessly invoked
parent d6b704d9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ buildGoModule rec {
  '';

  doInstallCheck = true;
  versionCheckProgram = "${placeholder "out"}/bin/nats";
  versionCheckProgramArg = "--version";

  meta = {
    description = "NATS Command Line Interface";