Merge pull request #42668 from mnacamura/feedgnuplot

feedgnuplot: init at 1.49

xeji c2eb9b4b e686bd27

Changed files
+56
pkgs
tools
graphics
feedgnuplot
top-level
+54
pkgs/tools/graphics/feedgnuplot/default.nix
···
+
{ stdenv, fetchFromGitHub, buildPerlPackage, makeWrapper, gawk
+
, makeFontsConf, freefont_ttf, gnuplot, perl, perlPackages
+
}:
+
+
let
+
+
fontsConf = makeFontsConf { fontDirectories = [ freefont_ttf ]; };
+
+
in
+
+
buildPerlPackage rec {
+
name = "feedgnuplot-${version}";
+
version = "1.49";
+
+
src = fetchFromGitHub {
+
owner = "dkogan";
+
repo = "feedgnuplot";
+
rev = "v${version}";
+
sha256 = "1bjnx36rsxlj845w9apvdjpza8vd9rbs3dlmgvky6yznrwa6sm02";
+
};
+
+
nativeBuildInputs = [ makeWrapper gawk ];
+
+
buildInputs = [ gnuplot perl ]
+
++ (with perlPackages; [ ListMoreUtils IPCRun StringShellQuote ]);
+
+
# Fontconfig error: Cannot load default config file
+
FONTCONFIG_FILE = fontsConf;
+
+
postPatch = ''
+
patchShebangs .
+
'';
+
+
# Tests require gnuplot 4.6.4 and are completely skipped with gnuplot 5.
+
doCheck = false;
+
+
postInstall = ''
+
wrapProgram $out/bin/feedgnuplot \
+
--prefix "PATH" ":" "$PATH" \
+
--prefix "PERL5LIB" ":" "$PERL5LIB"
+
install -D -m 444 -t $out/share/bash-completion/completions \
+
completions/bash/feedgnuplot
+
install -D -m 444 -t $out/share/zsh/site-functions \
+
completions/zsh/_feedgnuplot
+
'';
+
+
meta = with stdenv.lib; {
+
description = "General purpose pipe-oriented plotting tool";
+
homepage = https://github.com/dkogan/feedgnuplot/;
+
license = with licenses; [ artistic1 gpl1Plus ];
+
platforms = platforms.unix;
+
maintainers = with maintainers; [ mnacamura ];
+
};
+
}
+2
pkgs/top-level/all-packages.nix
···
fdk_aac = callPackage ../development/libraries/fdk-aac { };
+
feedgnuplot = callPackage ../tools/graphics/feedgnuplot { };
+
fim = callPackage ../tools/graphics/fim { };
flac123 = callPackage ../applications/audio/flac123 { };