Skip to content

Commit

Permalink
Percona-Toolkit: use shortenPerlShebang
Browse files Browse the repository at this point in the history
This is needed because the interpreter line have a length limit on various platforms
  • Loading branch information
framp committed Jul 1, 2020
1 parent d35735a commit 2fbb406
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkgs/development/perl-modules/Percona-Toolkit/default.nix
@@ -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,10 @@ buildPerlPackage {
sha256 = "0xk4h4dzl80kf97lbx0nznx9ajrb6kkg7k3iwca3rj6f3rqggv9y";
};
outputs = [ "out" ];
buildInputs = [ DBDmysql DBI IOSocketSSL TermReadKey ];
buildInputs = [ DBDmysql DBI IOSocketSSL TermReadKey shortenPerlShebang ];
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 2fbb406

Please sign in to comment.