feedgnuplot: fix perl shebang
(cherry picked from commit 75176e353c7e9d809f8465d70c76dc96452cec70)
This commit is contained in:
parent
47ed684380
commit
831bf15565
@ -1,5 +1,6 @@
|
|||||||
{ lib, fetchFromGitHub, makeWrapper, gawk
|
{ lib, fetchFromGitHub, makeWrapper, gawk
|
||||||
, makeFontsConf, freefont_ttf, gnuplot, perl, perlPackages
|
, makeFontsConf, freefont_ttf, gnuplot, perl, perlPackages
|
||||||
|
, stdenv, shortenPerlShebang
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -21,7 +22,7 @@ perlPackages.buildPerlPackage rec {
|
|||||||
|
|
||||||
outputs = [ "out" ];
|
outputs = [ "out" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper gawk ];
|
nativeBuildInputs = [ makeWrapper gawk ] ++ lib.optional stdenv.isDarwin shortenPerlShebang;
|
||||||
|
|
||||||
buildInputs = [ gnuplot perl ]
|
buildInputs = [ gnuplot perl ]
|
||||||
++ (with perlPackages; [ ListMoreUtils IPCRun StringShellQuote ]);
|
++ (with perlPackages; [ ListMoreUtils IPCRun StringShellQuote ]);
|
||||||
@ -36,7 +37,9 @@ perlPackages.buildPerlPackage rec {
|
|||||||
# Tests require gnuplot 4.6.4 and are completely skipped with gnuplot 5.
|
# Tests require gnuplot 4.6.4 and are completely skipped with gnuplot 5.
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = lib.optionalString stdenv.isDarwin ''
|
||||||
|
shortenPerlShebang $out/bin/feedgnuplot
|
||||||
|
'' + ''
|
||||||
wrapProgram $out/bin/feedgnuplot \
|
wrapProgram $out/bin/feedgnuplot \
|
||||||
--prefix "PATH" ":" "$PATH" \
|
--prefix "PATH" ":" "$PATH" \
|
||||||
--prefix "PERL5LIB" ":" "$PERL5LIB"
|
--prefix "PERL5LIB" ":" "$PERL5LIB"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user