bash-my-aws: add runtime dependencies
wrap PATH to provide runtime utilities
This commit is contained in:
parent
ca373323f1
commit
c906464396
|
@ -1,6 +1,8 @@
|
||||||
{ lib, stdenv
|
{ lib, stdenv
|
||||||
|
, makeWrapper
|
||||||
, awscli
|
, awscli
|
||||||
, jq
|
, jq
|
||||||
|
, unixtools
|
||||||
, fetchgit
|
, fetchgit
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
, bashInteractive
|
, bashInteractive
|
||||||
|
@ -22,9 +24,10 @@ stdenv.mkDerivation rec {
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
awscli
|
awscli
|
||||||
jq
|
jq
|
||||||
|
unixtools.column
|
||||||
bashInteractive
|
bashInteractive
|
||||||
];
|
];
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
pushd test
|
pushd test
|
||||||
|
@ -50,6 +53,7 @@ stdenv.mkDerivation rec {
|
||||||
--replace .bash-my-aws ""
|
--replace .bash-my-aws ""
|
||||||
substituteInPlace bin/bma \
|
substituteInPlace bin/bma \
|
||||||
--replace '~/.bash-my-aws' $out
|
--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
|
installShellCompletion --bash --name bash-my-aws.bash bash_completion.sh
|
||||||
chmod +x $out/lib/*
|
chmod +x $out/lib/*
|
||||||
patchShebangs --host $out/lib
|
patchShebangs --host $out/lib
|
||||||
|
|
Loading…
Reference in New Issue