aws-vault: drop xdg-open from dependencies on darwin (#288222)
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
, installShellFiles
|
||||
, lib
|
||||
, makeWrapper
|
||||
, stdenv
|
||||
, xdg-utils
|
||||
}:
|
||||
buildGoModule rec {
|
||||
@@ -22,7 +23,8 @@ buildGoModule rec {
|
||||
|
||||
postInstall = ''
|
||||
# make xdg-open overrideable at runtime
|
||||
wrapProgram $out/bin/aws-vault --suffix PATH : ${lib.makeBinPath [ xdg-utils ]}
|
||||
# aws-vault uses https://github.com/skratchdot/open-golang/blob/master/open/open.go to open links
|
||||
${lib.optionalString (!stdenv.isDarwin) "wrapProgram $out/bin/aws-vault --suffix PATH : ${lib.makeBinPath [ xdg-utils ]}"}
|
||||
installShellCompletion --cmd aws-vault \
|
||||
--bash $src/contrib/completions/bash/aws-vault.bash \
|
||||
--fish $src/contrib/completions/fish/aws-vault.fish \
|
||||
|
||||
Reference in New Issue
Block a user