nixpkgs/pkgs/tools/admin/ssmsh/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
789 B
Nix
Raw Normal View History

2023-09-03 07:34:28 +00:00
{ lib, buildGoModule, fetchFromGitHub, testers, ssmsh }:
2020-11-07 16:39:00 +00:00
buildGoModule rec {
pname = "ssmsh";
2023-09-03 07:34:28 +00:00
version = "1.4.8";
2020-11-07 16:39:00 +00:00
src = fetchFromGitHub {
owner = "bwhaley";
repo = pname;
rev = "v${version}";
2023-09-03 07:34:28 +00:00
sha256 = "sha256-GpN+yicgFIHOaMeJJcRn55f6fQbFX12vSV089/cMsqc=";
2020-11-07 16:39:00 +00:00
};
vendorHash = "sha256-17fmdsfOrOaySPsXofLzz0+vmiemg9MbnWhRoZ67EuQ=";
2020-11-07 16:39:00 +00:00
doCheck = true;
2021-08-26 06:45:51 +00:00
ldflags = [ "-w" "-s" "-X main.Version=${version}" ];
2020-11-07 16:39:00 +00:00
2023-09-03 07:34:28 +00:00
passthru.tests = testers.testVersion {
package = ssmsh;
command = "ssmsh -version";
version = "Version ${version}";
};
meta = with lib; {
2020-11-07 16:39:00 +00:00
homepage = "https://github.com/bwhaley/ssmsh";
description = "An interactive shell for AWS Parameter Store";
license = licenses.mit;
maintainers = with maintainers; [ dbirks ];
};
}