Merge pull request from aaronjheng/feedgnuplot

feedgnuplot: 1.58 -> 1.61
This commit is contained in:
Mario Rodas 2022-11-20 08:59:11 -05:00 committed by GitHub
commit 62c5966291
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,14 @@
{ lib, fetchFromGitHub, makeWrapper
, makeFontsConf, freefont_ttf, gnuplot, perl, perlPackages
, stdenv, shortenPerlShebang
{ lib
, fetchFromGitHub
, makeWrapper
, makeFontsConf
, freefont_ttf
, gnuplot
, perl
, perlPackages
, stdenv
, shortenPerlShebang
, installShellFiles
}:
let
@ -11,18 +19,18 @@ in
perlPackages.buildPerlPackage rec {
pname = "feedgnuplot";
version = "1.58";
version = "1.61";
src = fetchFromGitHub {
owner = "dkogan";
repo = "feedgnuplot";
rev = "v${version}";
sha256 = "1qix4lwwyhqibz0a6q2rrb497rmk00v1fvmdyinj0dqmgjw155zr";
sha256 = "sha256-r5rszxr65lSozkUNaqfBn4I4XjLtvQ6T/BG366JXLRM=";
};
outputs = [ "out" ];
nativeBuildInputs = [ makeWrapper ] ++ lib.optional stdenv.isDarwin shortenPerlShebang;
nativeBuildInputs = [ makeWrapper installShellFiles ] ++ lib.optional stdenv.isDarwin shortenPerlShebang;
buildInputs = [ gnuplot perl ]
++ (with perlPackages; [ ListMoreUtils IPCRun StringShellQuote ]);
@ -43,10 +51,9 @@ perlPackages.buildPerlPackage rec {
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
installShellCompletion --bash --name feedgnuplot.bash completions/bash/feedgnuplot
installShellCompletion --zsh completions/zsh/_feedgnuplot
'';
meta = with lib; {