stc-cli: add -version (#468909)
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
{
|
||||
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";
|
||||
|
||||
Reference in New Issue
Block a user