git.iko.soy/typeable/nixpkgs
on master help sign in
bash-my-aws: add runtime dependencies

wrap PATH to provide runtime utilities

commitc906464396cafd7adb3b682324cf1288a337a868 authorThomas Bereknyei <tomberek@gmail.com> dateThu 13 Aug 2020, 22:43 (6 years ago) parentca37332
1 file changed+5−1
pkgs/tools/admin/bash-my-aws/default.nix+5−1
pkgs/tools/admin/bash-my-aws/default.nix+5−1
@@ -1,6 +1,8 @@
11{ lib, stdenv
2+, makeWrapper
23, awscli
34, jq
5+, unixtools
46, fetchgit
57, installShellFiles
68, bashInteractive
@@ -22,9 +24,10 @@ stdenv.mkDerivation rec {
2224 propagatedBuildInputs = [
2325 awscli
2426 jq
27+ unixtools.column
2528 bashInteractive
2629 ];
27− nativeBuildInputs = [ installShellFiles ];
30+ nativeBuildInputs = [ makeWrapper installShellFiles ];
2831
2932 checkPhase = ''
3033 pushd test
@@ -50,6 +53,7 @@ stdenv.mkDerivation rec {
5053 --replace .bash-my-aws ""
5154 substituteInPlace bin/bma \
5255 --replace '~/.bash-my-aws' $out
56+ wrapProgram $out/bin/bma --prefix PATH : ${lib.makeBinPath [awscli jq unixtools.column bashInteractive ]}
5357 installShellCompletion --bash --name bash-my-aws.bash bash_completion.sh
5458 chmod +x $out/lib/*
5559 patchShebangs --host $out/lib