2023-10-09 19:29:22 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, ssmsh }:
|
2020-11-12 23:50:31 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ssmsh";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "1.4.9";
|
2020-11-12 23:50:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bwhaley";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
sha256 = "sha256-UmfwDukRVyfX+DmUfRi+KepqFrPtDNImKd22/dI7ytk=";
|
2020-11-12 23:50:31 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
vendorHash = "sha256-+7duWRe/haBOZbe18sr2qwg419ieEZwYDb0L3IPLA4A=";
|
2020-11-12 23:50:31 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [ "-w" "-s" "-X main.Version=${version}" ];
|
2020-11-12 23:50:31 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
passthru.tests = testers.testVersion {
|
|
|
|
package = ssmsh;
|
|
|
|
command = "ssmsh -version";
|
|
|
|
version = "Version ${version}";
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-11-12 23:50:31 +00:00
|
|
|
homepage = "https://github.com/bwhaley/ssmsh";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Interactive shell for AWS Parameter Store";
|
2020-11-12 23:50:31 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dbirks ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "ssmsh";
|
2020-11-12 23:50:31 +00:00
|
|
|
};
|
|
|
|
}
|