bash-my-aws: add runtime dependencies

wrap PATH to provide runtime utilities
This commit is contained in:
Thomas Bereknyei 2020-08-13 22:43:19 -04:00 committed by tomberek
parent ca373323f1
commit c906464396

View file

@ -1,6 +1,8 @@
{ lib, stdenv
, makeWrapper
, awscli
, jq
, unixtools
, fetchgit
, installShellFiles
, bashInteractive
@ -22,9 +24,10 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [
awscli
jq
unixtools.column
bashInteractive
];
nativeBuildInputs = [ installShellFiles ];
nativeBuildInputs = [ makeWrapper installShellFiles ];
checkPhase = ''
pushd test
@ -50,6 +53,7 @@ stdenv.mkDerivation rec {
--replace .bash-my-aws ""
substituteInPlace bin/bma \
--replace '~/.bash-my-aws' $out
wrapProgram $out/bin/bma --prefix PATH : ${lib.makeBinPath [awscli jq unixtools.column bashInteractive ]}
installShellCompletion --bash --name bash-my-aws.bash bash_completion.sh
chmod +x $out/lib/*
patchShebangs --host $out/lib