13 src = fetchFromGitHub {
17 hash = "sha256-Qs4vxFgehWQYYECBGBSU8YI/BHLwOQUO5wBlNEUzD7c=";
20 vendorHash = "sha256-4bJKDEZlO0DzEzTQ7m+SQuzhe+wKmL6wLueqgSz/46s=";
22 nativeBuildInputs = [ installShellFiles makeWrapper ];
25 # make xdg-open overrideable at runtime
26 # aws-vault uses https://github.com/skratchdot/open-golang/blob/master/open/open.go to open links
27 ${lib.optionalString (!stdenv.hostPlatform.isDarwin) "wrapProgram $out/bin/aws-vault --suffix PATH : ${lib.makeBinPath [ xdg-utils ]}"}
28 installShellCompletion --cmd aws-vault \
29 --bash $src/contrib/completions/bash/aws-vault.bash \
30 --fish $src/contrib/completions/fish/aws-vault.fish \
31 --zsh $src/contrib/completions/zsh/aws-vault.zsh
37 subPackages = [ "." ];
39 # set the version. see: aws-vault's Makefile
41 "-X main.Version=v${version}"
44 doInstallCheck = true;
46 installCheckPhase = ''
47 $out/bin/aws-vault --version 2>&1 | grep ${version} > /dev/null
52 "A vault for securely storing and accessing AWS credentials in development environments";
53 mainProgram = "aws-vault";
54 homepage = "https://github.com/99designs/aws-vault";
55 license = licenses.mit;
56 maintainers = with maintainers; [ zimbatm ];