summary refs log tree commit diff
path: root/pkgs/tools/admin/awsweeper/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/admin/awsweeper/default.nix')
-rw-r--r--pkgs/tools/admin/awsweeper/default.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/pkgs/tools/admin/awsweeper/default.nix b/pkgs/tools/admin/awsweeper/default.nix
index fda773b48cd..2417854fcad 100644
--- a/pkgs/tools/admin/awsweeper/default.nix
+++ b/pkgs/tools/admin/awsweeper/default.nix
@@ -1,9 +1,15 @@
-{ lib, buildGoModule, fetchFromGitHub }:
+{ lib, buildGoModule, fetchurl, fetchFromGitHub }:
 
 buildGoModule rec {
   pname = "awsweeper";
   version = "0.7.0";
 
+  # Requires go generate to be run with mockgen, but doesn't check in the results.
+  patches = fetchurl {
+    url = "https://raw.githubusercontent.com/c00w/patches/master/awskeeper.patch";
+    sha256 = "0dz553ffxc37m2iwygrbhxf7pm91hxdriic8a1gjf8q3nyn13npl";
+  };
+
   src = fetchFromGitHub {
     owner = "cloudetc";
     repo = pname;
@@ -11,7 +17,9 @@ buildGoModule rec {
     sha256 = "1ybrrpnp6rh7rcwihww43cvhfhzzyy51rdk1hwy9ljpkg37k4y28";
   };
 
-  modSha256 = "07zz6wf9cq3wylihi9fx0rd85iybnq5z5c9gqw1lhpvqcrad4491";
+  vendorSha256 = "0hnpb1xp135z2qpn1b6xad59739hffhs8dfpr3n5drmrvajpn4xp";
+
+  doCheck = false;
 
   meta = with lib; {
     description = "A tool to clean out your AWS account";