Skip to content

Commit

Permalink
PerconaToolkit: use shortenPerlShebang (#91921)
Browse files Browse the repository at this point in the history
(cherry picked from commit ae16459)
  • Loading branch information
framp authored and veprbl committed Jul 11, 2020
1 parent 5ca87e2 commit 009c509
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkgs/development/perl-modules/Percona-Toolkit/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, fetchFromGitHub, buildPerlPackage, DBDmysql, DBI, IOSocketSSL, TermReadKey }:
{ lib, fetchFromGitHub, buildPerlPackage, DBDmysql, DBI, IOSocketSSL, TermReadKey, shortenPerlShebang }:

buildPerlPackage {
pname = "Percona-Toolkit";
Expand All @@ -10,7 +10,11 @@ buildPerlPackage {
sha256 = "0xk4h4dzl80kf97lbx0nznx9ajrb6kkg7k3iwca3rj6f3rqggv9y";
};
outputs = [ "out" ];
nativeBuildInputs = [ shortenPerlShebang ];
buildInputs = [ DBDmysql DBI IOSocketSSL TermReadKey ];
postInstall = ''
shortenPerlShebang $(grep -l "/bin/env perl" $out/bin/*)
'';
meta = {
description = ''Collection of advanced command-line tools to perform a variety of MySQL and system tasks.'';
homepage = http://www.percona.com/software/percona-toolkit;
Expand Down

0 comments on commit 009c509

Please sign in to comment.