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