Merge pull request #124749 from mnacamura/feedgnuplot
feedgnuplot: fix perl shebang and bump version
This commit is contained in:
commit
881ebaacf8
1 changed files with 7 additions and 4 deletions
|
@ -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
|
||||||
|
@ -10,18 +11,18 @@ in
|
||||||
|
|
||||||
perlPackages.buildPerlPackage rec {
|
perlPackages.buildPerlPackage rec {
|
||||||
pname = "feedgnuplot";
|
pname = "feedgnuplot";
|
||||||
version = "1.51";
|
version = "1.58";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "dkogan";
|
owner = "dkogan";
|
||||||
repo = "feedgnuplot";
|
repo = "feedgnuplot";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0npk2l032cnmibjj5zf3ii09mpxciqn32lx6g5bal91bkxwn7r5i";
|
sha256 = "1qix4lwwyhqibz0a6q2rrb497rmk00v1fvmdyinj0dqmgjw155zr";
|
||||||
};
|
};
|
||||||
|
|
||||||
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…
Reference in a new issue