diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2017-03-10 05:40:20 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2017-03-10 05:40:20 +0300 |
commit | f7bb9e36ae9b82c488c129bd012bbb78a5c813ef (patch) | |
tree | 730a2c864ccee7c859bae3b39dc508f3a040c97e | |
parent | ddd05772b5de242fc7ea2569779ffc5d37ec3443 (diff) | |
download | nixsap-f7bb9e36ae9b82c488c129bd012bbb78a5c813ef.tar.gz |
rdsdump: wrap for mysql client binaries
-rw-r--r-- | modules/pkgs/rdsdump/default.nix | 5 |
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' ''; } |