Unverified Commit 8d43e4e7 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

stc-cli: add -version (#468909)

parents fff6268c 34dd0d96
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
{
  lib,
  buildGoModule,
  fetchFromGitHub,
  lib,
  versionCheckHook,
}:

buildGoModule rec {
@@ -17,6 +18,12 @@ buildGoModule rec {

  vendorHash = "sha256-qLpWXikTr+vB2bIw2EqnoJ0uOxUc/qc6SdGEJQXwmTQ=";

  ldflags = [ "-X main.GitTag=${version}" ];

  doInstallCheck = true;
  nativeInstallCheckInputs = [ versionCheckHook ];
  versionCheckProgramArg = "-version";

  meta = {
    description = "Syncthing CLI Tool";
    homepage = "https://github.com/tenox7/stc";