aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-03-10 05:40:20 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-03-10 05:40:20 +0300
commitf7bb9e36ae9b82c488c129bd012bbb78a5c813ef (patch)
tree730a2c864ccee7c859bae3b39dc508f3a040c97e
parentddd05772b5de242fc7ea2569779ffc5d37ec3443 (diff)
downloadnixsap-f7bb9e36ae9b82c488c129bd012bbb78a5c813ef.tar.gz
rdsdump: wrap for mysql client binaries
-rw-r--r--modules/pkgs/rdsdump/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/pkgs/rdsdump/default.nix b/modules/pkgs/rdsdump/default.nix
index 0efe033..5d9b024 100644
--- a/modules/pkgs/rdsdump/default.nix
+++ b/modules/pkgs/rdsdump/default.nix
@@ -1,14 +1,17 @@
-{ stdenv, bash, ... }:
+{ stdenv, bash, mysql, makeWrapper }:
stdenv.mkDerivation {
name = "rdsdump";
buildInputs = [ bash ];
phases = [ "installPhase" ];
+ nativeBuildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/bin
cp -a ${./rdsdump.bash} $out/bin/rdsdump
chmod +x $out/bin/rdsdump
patchShebangs $out/bin/rdsdump
+ wrapProgram "$out/bin/rdsdump" \
+ --prefix PATH : '${mysql.client.bin}/bin'
'';
}