summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2022-05-08 13:57:23 +0800
committerGitHub <noreply@github.com>2022-05-08 13:57:23 +0800
commita2a044bcc5cd84cbd31403a37d43f3b1ce51391b (patch)
treeca2dfa5449602dc331d77012394c7496c7d58a5e /pkgs/tools
parentac968691e0a56fd927d9ebbb1d7fd84974f0df22 (diff)
parentb6012814b6bb66f9a4b3b43cbe75a97f9d6cdb30 (diff)
downloadnixpkgs-a2a044bcc5cd84cbd31403a37d43f3b1ce51391b.tar
nixpkgs-a2a044bcc5cd84cbd31403a37d43f3b1ce51391b.tar.gz
nixpkgs-a2a044bcc5cd84cbd31403a37d43f3b1ce51391b.tar.bz2
nixpkgs-a2a044bcc5cd84cbd31403a37d43f3b1ce51391b.tar.lz
nixpkgs-a2a044bcc5cd84cbd31403a37d43f3b1ce51391b.tar.xz
nixpkgs-a2a044bcc5cd84cbd31403a37d43f3b1ce51391b.tar.zst
nixpkgs-a2a044bcc5cd84cbd31403a37d43f3b1ce51391b.zip
Merge pull request #168995 from aaronjheng/aws-rotate-key
aws-rotate-key: 1.0.6 -> 1.0.8
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/admin/aws-rotate-key/default.nix22
-rw-r--r--pkgs/tools/admin/aws-rotate-key/deps.nix29
2 files changed, 13 insertions, 38 deletions
diff --git a/pkgs/tools/admin/aws-rotate-key/default.nix b/pkgs/tools/admin/aws-rotate-key/default.nix
index 82b57739120..35221b3fb5b 100644
--- a/pkgs/tools/admin/aws-rotate-key/default.nix
+++ b/pkgs/tools/admin/aws-rotate-key/default.nix
@@ -1,25 +1,29 @@
-{ lib, buildGoPackage, fetchFromGitHub }:
+{ lib, buildGoModule, fetchFromGitHub, testers, aws-rotate-key }:
 
-buildGoPackage rec {
+buildGoModule rec {
   pname = "aws-rotate-key";
-  version = "1.0.6";
-
-  goPackagePath = "github.com/Fullscreen/aws-rotate-key";
+  version = "1.0.8";
 
   src = fetchFromGitHub {
-    rev = "v${version}";
     owner = "Fullscreen";
     repo = "aws-rotate-key";
-    sha256 = "1w9704g1l2b0y6g6mk79g28kk0yaswpgljkk85d0i10wyxq4icby";
+    rev = "v${version}";
+    sha256 = "sha256-5kV87uQDSc/qpm79Pd2nXo/EcbMlhZqFYaw+gJQa2uo=";
   };
 
-  goDeps = ./deps.nix;
+  vendorSha256 = "sha256-h7tmJx/Um1Cy/ojiFjoKCH/LcOwhGU8ADb5WwmrkkJM=";
+
+  ldflags = [ "-s" "-w" ];
+
+  passthru.tests.version = testers.testVersion {
+    package = aws-rotate-key;
+  };
 
   meta = with lib; {
     description = "Easily rotate your AWS key";
     homepage = "https://github.com/Fullscreen/aws-rotate-key";
     license = licenses.mit;
-    maintainers = [maintainers.mbode];
+    maintainers = [ maintainers.mbode ];
     platforms = platforms.unix;
   };
 }
diff --git a/pkgs/tools/admin/aws-rotate-key/deps.nix b/pkgs/tools/admin/aws-rotate-key/deps.nix
deleted file mode 100644
index 680a18e7e2d..00000000000
--- a/pkgs/tools/admin/aws-rotate-key/deps.nix
+++ /dev/null
@@ -1,29 +0,0 @@
-[
-  {
-    goPackagePath = "github.com/go-ini/ini";
-    fetch = {
-      type = "git";
-      url = "https://github.com/go-ini/ini";
-      rev = "af26abd521cd7697481572fdbc4a53cbea3dde1b";
-      sha256 = "1yribbqy9i4i70dfg3yrjhkn3n0fywpr3kismn2mvi882mm01pxz";
-    };
-  }
-  {
-    goPackagePath = "github.com/jmespath/go-jmespath";
-    fetch = {
-      type = "git";
-      url = "https://github.com/jmespath/go-jmespath";
-      rev = "c2b33e8439af944379acbdd9c3a5fe0bc44bd8a5";
-      sha256 = "1r6w7ydx8ydryxk3sfhzsk8m6f1nsik9jg3i1zhi69v4kfl4d5cz";
-    };
-  }
-  {
-    goPackagePath = "github.com/aws/aws-sdk-go";
-    fetch = {
-      type = "git";
-      url = "https://github.com/aws/aws-sdk-go";
-      rev = "f844700ba2a387dfee7ab3679e7544b5dbd6d394";
-      sha256 = "0s9100bzqj58nnax3dxfgi5qr4rbaa53cb0cj3s58k9jc9z6270m";
-    };
-  }
-]