about summary refs log tree commit diff
path: root/pkgs/tools/security/saml2aws
diff options
context:
space:
mode:
authorColin L Rice <colin@daedrum.net>2020-06-03 22:57:19 -0400
committerColin L Rice <colin@daedrum.net>2020-07-29 19:07:59 -0400
commit4561583acfc6c68ee723c530f89292c2449364c7 (patch)
treee2a3da2451f72ab20ac5ff265c6ad5aa217b0d64 /pkgs/tools/security/saml2aws
parent298c6a7df84703271386e6738de471993d2c7406 (diff)
saml2aws: use vend to simplify package
Diffstat (limited to 'pkgs/tools/security/saml2aws')
-rw-r--r--pkgs/tools/security/saml2aws/default.nix18
1 files changed, 3 insertions, 15 deletions
diff --git a/pkgs/tools/security/saml2aws/default.nix b/pkgs/tools/security/saml2aws/default.nix
index 144ac3a95c858..d34e9e5da1046 100644
--- a/pkgs/tools/security/saml2aws/default.nix
+++ b/pkgs/tools/security/saml2aws/default.nix
@@ -11,20 +11,8 @@ buildGoModule rec {
     sha256 = "0y5gvdrdr6i9spdwsxvzs1bxs32icxpkqxnglp1bf4gglc580d87";
   };
 
-  hid = fetchFromGitHub {
-    owner = "karalabe";
-    repo = "hid";
-    rev = "9c14560f9ee858c43f40b5cd01392b167aacf4e8";
-    sha256 = "0xc7b8mwha64j7l2fr2g5zy8pz7cqi0vrxx60gii52b6ii31xncx";
-  };
-
-  vendorSha256 = "0f81nrg8v3xh2hcx7g77p3ahr4gyj042bwr1knf2phpahgz9n9rn";
-  overrideModAttrs = (_: {
-      postBuild = ''
-      cp -r --reflink=auto ${hid}/libusb vendor/github.com/karalabe/hid
-      cp -r --reflink=auto ${hid}/hidapi vendor/github.com/karalabe/hid
-      '';
-    });
+  runVend = true;
+  vendorSha256 = "1kzihyx44sx6php4z58fzy6c3g0y713939yzxpgk3n03snn2x8sf";
 
   subPackages = [ "." "cmd/saml2aws" ];
 
@@ -39,4 +27,4 @@ buildGoModule rec {
     platforms   = stdenv.lib.platforms.unix;
     maintainers = [ stdenv.lib.maintainers.pmyjavec ];
   };
-}
\ No newline at end of file
+}