summary refs log tree commit diff
path: root/pkgs/tools/security
diff options
context:
space:
mode:
authorRenaud <c0bw3b@users.noreply.github.com>2019-04-21 18:55:46 +0200
committerGitHub <noreply@github.com>2019-04-21 18:55:46 +0200
commit9bf85fc595b2dada2da379ac19d8768eb6d6731a (patch)
treeb681fd0b42e2ee16a86a508ef9f3ee467e44e31a /pkgs/tools/security
parent694f07be2effcd2b7d70ccad3dbdbd267519810a (diff)
parent3e8f2062a6d31dc7f9c43b1bef358360654337a0 (diff)
downloadnixpkgs-9bf85fc595b2dada2da379ac19d8768eb6d6731a.tar
nixpkgs-9bf85fc595b2dada2da379ac19d8768eb6d6731a.tar.gz
nixpkgs-9bf85fc595b2dada2da379ac19d8768eb6d6731a.tar.bz2
nixpkgs-9bf85fc595b2dada2da379ac19d8768eb6d6731a.tar.lz
nixpkgs-9bf85fc595b2dada2da379ac19d8768eb6d6731a.tar.xz
nixpkgs-9bf85fc595b2dada2da379ac19d8768eb6d6731a.tar.zst
nixpkgs-9bf85fc595b2dada2da379ac19d8768eb6d6731a.zip
Merge pull request #59790 from vaibhavsagar/bump-aws-okta
aws-okta: 0.19.0 -> 0.20.1
Diffstat (limited to 'pkgs/tools/security')
-rw-r--r--pkgs/tools/security/aws-okta/default.nix11
-rw-r--r--pkgs/tools/security/aws-okta/deps.nix29
2 files changed, 37 insertions, 3 deletions
diff --git a/pkgs/tools/security/aws-okta/default.nix b/pkgs/tools/security/aws-okta/default.nix
index cdb35453d3d..36b6a5767a1 100644
--- a/pkgs/tools/security/aws-okta/default.nix
+++ b/pkgs/tools/security/aws-okta/default.nix
@@ -1,8 +1,8 @@
-{ buildGoPackage, fetchFromGitHub, stdenv }:
+{ buildGoPackage, fetchFromGitHub, libusb1, pkgconfig, stdenv }:
 
 buildGoPackage rec {
   name = "aws-okta-${version}";
-  version = "0.19.0";
+  version = "0.20.1";
 
   goPackagePath = "github.com/segmentio/aws-okta";
 
@@ -10,11 +10,16 @@ buildGoPackage rec {
     owner = "segmentio";
     repo = "aws-okta";
     rev = "v${version}";
-    sha256 = "1c9mn492yva7cdsx2b0n8g2fdl9660v3xma0v82jzb0c9y9rq0ms";
+    sha256 = "084lb9rp04vbpzmvsb2l92a4gp7c8g28x4xsagzwkqqpwi3fd15d";
   };
 
+  goDeps = ./deps.nix;
+
   buildFlags = "--tags release";
 
+  nativeBuildInputs = [ pkgconfig ];
+  buildInputs = [ libusb1 ];
+
   meta = with stdenv.lib; {
     inherit version;
     description = "aws-vault like tool for Okta authentication";
diff --git a/pkgs/tools/security/aws-okta/deps.nix b/pkgs/tools/security/aws-okta/deps.nix
new file mode 100644
index 00000000000..180aa69d56c
--- /dev/null
+++ b/pkgs/tools/security/aws-okta/deps.nix
@@ -0,0 +1,29 @@
+[
+  {
+    goPackagePath = "github.com/sirupsen/logrus";
+    fetch = {
+      type = "git";
+      url = "https://github.com/sirupsen/logrus.git";
+      rev = "a437dfd2463eaedbec3dfe443e477d3b0a810b3f";
+      sha256 = "1904s2bbc7p88anzjp6fyj3jrbm5p6wbb8j4490674dq10kkcfbj";
+    };
+  }
+  {
+    goPackagePath = "golang.org/x/sys/unix";
+    fetch = {
+      type = "git";
+      url = "https://github.com/golang/sys.git";
+      rev = "b699b7032584f0953262cb2788a0ca19bb494703";
+      sha256 = "172sw1bm581qwal9pbf9qj1sgivr74nabbj8qq4q4fhgpzams9ix";
+    };
+  }
+  {
+    goPackagePath = "github.com/marshallbrekka/go-u2fhost";
+    fetch = {
+      type = "git";
+      url = "https://github.com/marshallbrekka/go-u2fhost";
+      rev = "72b0e7a3f583583996b3b382d2dfaa81fdc4b82c";
+      sha256 = "0apzmf0bjpr58ynw55agyjsl74zyg5qjk19nyyy4zhip3s9b1d0h";
+    };
+  }
+]