Unverified Commit 7727237a authored by Konstantin Alekseev's avatar Konstantin Alekseev Committed by GitHub
Browse files

aws-vault: drop xdg-open from dependencies on darwin (#288222)

parent 08558904
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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 \