Merge pull request #229507 from otavio/sh-0_11_8

shellhub-agent: 0.11.7 -> 0.11.8
This commit is contained in:
Thiago Kenji Okada 2023-05-03 00:22:03 +01:00 committed by GitHub
commit bae544e4dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,22 +5,24 @@
, makeWrapper
, openssh
, libxcrypt
, testers
, shellhub-agent
}:
buildGo120Module rec {
pname = "shellhub-agent";
version = "0.11.7";
version = "0.11.8";
src = fetchFromGitHub {
owner = "shellhub-io";
repo = "shellhub";
rev = "v${version}";
sha256 = "d5ESQQgBPUFe2tuCbeFIqiWPpr9wUczbXLc5QdXurXY=";
sha256 = "/nBwi94VFKzdZxQ030tCqEhDM0fE3bxc4MraOCNtmbE=";
};
modRoot = "./agent";
vendorSha256 = "sha256-/85rIBfFBpXYrsCBDGVzXfAxO6xXQ8uTL2XeEPKQwDQ=";
vendorSha256 = "sha256-1R5K/BlMNKtCESV5xVFh2MawfloSDmST2764WDXmqZk=";
ldflags = [ "-s" "-w" "-X main.AgentVersion=v${version}" ];
@ -29,6 +31,12 @@ buildGo120Module rec {
rev-prefix = "v";
ignoredVersions = ".(rc|beta).*";
};
tests.version = testers.testVersion {
package = shellhub-agent;
command = "agent --version";
version = "v${version}";
};
};
nativeBuildInputs = [ makeWrapper ];