about summary refs log tree commit diff
path: root/pkgs/tools/admin/aws-vault
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-03-21 04:37:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2020-03-21 04:37:00 -0500
commit798569a534032f13db4b4f5b1265f11cdd2e7d2a (patch)
tree944b40c3e8d16bfd75c39c4fd72d925ba902f31a /pkgs/tools/admin/aws-vault
parent203e2ca6f9b30685bbe3cd045402ce3e6dcbf9b0 (diff)
aws-vault: fix build on darwin
Diffstat (limited to 'pkgs/tools/admin/aws-vault')
-rw-r--r--pkgs/tools/admin/aws-vault/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/tools/admin/aws-vault/default.nix b/pkgs/tools/admin/aws-vault/default.nix
index 48a1de61cd80e..3e145f7323626 100644
--- a/pkgs/tools/admin/aws-vault/default.nix
+++ b/pkgs/tools/admin/aws-vault/default.nix
@@ -1,4 +1,4 @@
-{ buildGoModule, lib, fetchFromGitHub }:
+{ buildGoModule, stdenv, fetchFromGitHub, Security }:
 buildGoModule rec {
   pname = "aws-vault";
   version = "5.3.2";
@@ -13,13 +13,15 @@ buildGoModule rec {
   modSha256 = "1d3hjfmfmlpw2scfyn597zkzz864w97p0wrsxjp49m9mi0pgmhq9";
   subPackages = [ "." ];
 
+  buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
+
   # set the version. see: aws-vault's Makefile
   buildFlagsArray = ''
     -ldflags=
     -X main.Version=v${version}
   '';
 
-  meta = with lib; {
+  meta = with stdenv.lib; {
     description =
       "A vault for securely storing and accessing AWS credentials in development environments";
     homepage = "https://github.com/99designs/aws-vault";