diff options
author | Weijia Wang | 2024-04-09 08:26:23 +0200 |
---|---|---|
committer | Weijia Wang | 2024-04-09 08:26:23 +0200 |
commit | 3f59355d8466fc2b1cfe45cd21e4476a686bfeaf (patch) | |
tree | e3f355b60c44bab4ddf55f4a87836c88abf738b1 /pkgs/tools/security/crowdsec/default.nix | |
parent | f682fc1115301f70586f107573d2e4705cb238dd (diff) | |
parent | 038c0347a0d39cb187d76260785b610f05706a23 (diff) |
Merge branch 'staging-next' into staging
Diffstat (limited to 'pkgs/tools/security/crowdsec/default.nix')
-rw-r--r-- | pkgs/tools/security/crowdsec/default.nix | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/tools/security/crowdsec/default.nix b/pkgs/tools/security/crowdsec/default.nix index f9428bdd3170..06cbecad8474 100644 --- a/pkgs/tools/security/crowdsec/default.nix +++ b/pkgs/tools/security/crowdsec/default.nix @@ -23,9 +23,9 @@ buildGoModule rec { ldflags = [ "-s" "-w" - "-X github.com/crowdsecurity/go-cs-lib/pkg/version.Version=v${version}" - "-X github.com/crowdsecurity/go-cs-lib/pkg/version.BuildDate=1970-01-01_00:00:00" - "-X github.com/crowdsecurity/go-cs-lib/pkg/version.Tag=${src.rev}" + "-X github.com/crowdsecurity/go-cs-lib/version.Version=v${version}" + "-X github.com/crowdsecurity/go-cs-lib/version.BuildDate=1970-01-01_00:00:00" + "-X github.com/crowdsecurity/go-cs-lib/version.Tag=${src.rev}" "-X github.com/crowdsecurity/crowdsec/pkg/cwversion.Codename=alphaga" "-X github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultConfigDir=/etc/crowdsec" "-X github.com/crowdsecurity/crowdsec/pkg/csconfig.defaultDataDir=/var/lib/crowdsec/data" @@ -43,6 +43,11 @@ buildGoModule rec { --zsh <($out/bin/cscli completion zsh) ''; + # It's important that the version is correctly set as it also determines feature capabilities + checkPhase = '' + $GOPATH/bin/cscli version 2>&1 | grep -q "version: v${version}" + ''; + meta = with lib; { homepage = "https://crowdsec.net/"; changelog = "https://github.com/crowdsecurity/crowdsec/releases/tag/v${version}"; |