1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 17:41:12 +00:00
nixpkgs/pkgs/tools/graphics/feedgnuplot/default.nix

54 lines
1.4 KiB
Nix
Raw Normal View History

2018-06-27 20:22:20 +01:00
{ 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 .
'';
doCheck = true;
postInstall = ''
wrapProgram $out/bin/feedgnuplot \
--prefix "PATH" ":" "$PATH" \
--prefix "PERL5LIB" ":" "$PERL5LIB"
2018-06-28 04:23:55 +01:00
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
2018-06-27 20:22:20 +01:00
'';
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 ];
};
}