feedgnuplot: 1.58 -> 1.61

This commit is contained in:
Aaron Jheng 2022-11-10 08:45:11 +00:00
parent 9bbb7fb635
commit 14f9d0c10b
No known key found for this signature in database
GPG Key ID: F6A547A869D050A3

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; {