at 24.11-pre 1.6 kB view raw
1{ lib, stdenv, fetchurl, gnuplot, ruby }: 2 3stdenv.mkDerivation { 4 pname = "eplot"; 5 version = "2.09"; 6 7 # Upstream has been contacted (2015-03) regarding providing versioned 8 # download URLs. Initial response was positive, but no action yet. 9 src = fetchurl { 10 url = "http://liris.cnrs.fr/christian.wolf/software/eplot/download/eplot"; 11 sha256 = "0y9x82i3sfpgxsqz2w42r6iad6ph7vxb7np1xbwapx5iipciclw5"; 12 }; 13 14 ecSrc = fetchurl { 15 url = "http://liris.cnrs.fr/christian.wolf/software/eplot/download/ec"; 16 sha256 = "0fg31g8mrcx14h2rjcf091cbd924n19z55iscaiflspifya30yhd"; 17 }; 18 19 buildInputs = [ ruby ]; 20 21 dontUnpack = true; 22 23 installPhase = '' 24 runHook preInstall 25 26 mkdir -p "$out/bin" 27 cp "$src" "$out/bin/eplot" 28 cp "$ecSrc" "$out/bin/ec" 29 chmod +x "$out/bin/"* 30 31 sed -i -e "s|gnuplot -persist|${gnuplot}/bin/gnuplot -persist|" "$out/bin/eplot" 32 33 runHook postInstall 34 ''; 35 36 meta = with lib; { 37 description = "Create plots quickly with gnuplot"; 38 longDescription = '' 39 eplot ("easy gnuplot") is a ruby script which allows to pipe data easily 40 through gnuplot and create plots quickly, which can be saved in 41 postscript, PDF, PNG or EMF files. Plotting of multiple files into a 42 single diagram is supported. 43 44 This package also includes the complementary 'ec' tool (say "extract 45 column"). 46 ''; 47 homepage = "https://perso.liris.cnrs.fr/christian.wolf/software/eplot/"; 48 license = licenses.gpl2Plus; 49 platforms = platforms.all; 50 maintainers = with maintainers; [ bjornfor shamilton ]; 51 }; 52}