lol
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 testers,
6 ssmsh,
7}:
8
9buildGoModule rec {
10 pname = "ssmsh";
11 version = "1.4.9";
12
13 src = fetchFromGitHub {
14 owner = "bwhaley";
15 repo = "ssmsh";
16 rev = "v${version}";
17 sha256 = "sha256-UmfwDukRVyfX+DmUfRi+KepqFrPtDNImKd22/dI7ytk=";
18 };
19
20 vendorHash = "sha256-+7duWRe/haBOZbe18sr2qwg419ieEZwYDb0L3IPLA4A=";
21
22 doCheck = true;
23
24 ldflags = [
25 "-w"
26 "-s"
27 "-X main.Version=${version}"
28 ];
29
30 passthru.tests = testers.testVersion {
31 package = ssmsh;
32 command = "ssmsh -version";
33 version = "Version ${version}";
34 };
35
36 meta = with lib; {
37 homepage = "https://github.com/bwhaley/ssmsh";
38 description = "Interactive shell for AWS Parameter Store";
39 license = licenses.mit;
40 maintainers = with maintainers; [ dbirks ];
41 mainProgram = "ssmsh";
42 };
43}