2023-09-03 08:34:28 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, ssmsh }:
|
2020-11-07 16:39:00 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ssmsh";
|
2024-02-15 00:11:21 +00:00
|
|
|
version = "1.4.9";
|
2020-11-07 16:39:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bwhaley";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-02-15 00:11:21 +00:00
|
|
|
sha256 = "sha256-UmfwDukRVyfX+DmUfRi+KepqFrPtDNImKd22/dI7ytk=";
|
2020-11-07 16:39:00 +00:00
|
|
|
};
|
|
|
|
|
2024-02-15 00:11:21 +00:00
|
|
|
vendorHash = "sha256-+7duWRe/haBOZbe18sr2qwg419ieEZwYDb0L3IPLA4A=";
|
2020-11-07 16:39:00 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-08-26 07:45:51 +01:00
|
|
|
ldflags = [ "-w" "-s" "-X main.Version=${version}" ];
|
2020-11-07 16:39:00 +00:00
|
|
|
|
2023-09-03 08:34:28 +01:00
|
|
|
passthru.tests = testers.testVersion {
|
|
|
|
package = ssmsh;
|
|
|
|
command = "ssmsh -version";
|
|
|
|
version = "Version ${version}";
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-11-07 16:39:00 +00:00
|
|
|
homepage = "https://github.com/bwhaley/ssmsh";
|
|
|
|
description = "Interactive shell for AWS Parameter Store";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dbirks ];
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "ssmsh";
|
2020-11-07 16:39:00 +00:00
|
|
|
};
|
|
|
|
}
|