From 6fe8c8b9a6d383bcec9c14f995435ab4c0c564b5 Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Mon, 20 Jul 2020 02:25:41 +0200 Subject: [PATCH] package eplot --- default.nix | 1 + pkgs/eplot/default.nix | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 pkgs/eplot/default.nix diff --git a/default.nix b/default.nix index d62b338..c44020e 100644 --- a/default.nix +++ b/default.nix @@ -18,6 +18,7 @@ in overlays = import ./overlays; # nixpkgs overlays colors = pkgs.callPackage ./pkgs/colors { }; + eplot = pkgs.callPackage ./pkgs/eplot { }; rank_photos = pkgs.callPackage ./pkgs/rank_photos { }; JAVMovieScraper = pkgs.callPackage ./pkgs/JAVMovieScraper { }; diff --git a/pkgs/eplot/default.nix b/pkgs/eplot/default.nix new file mode 100644 index 0000000..3cfbe2a --- /dev/null +++ b/pkgs/eplot/default.nix @@ -0,0 +1,38 @@ +{ stdenv, fetchFromGitHub, gnuplot, ruby }: + +stdenv.mkDerivation { + name = "eplot-unstable-2018-09-03"; + + src = fetchFromGitHub { + owner = "chriswolfvision"; + repo = "eplot"; + rev = "77bbe535f08a4377a7d86f11a21a726b06470323"; + sha256 = "0y81dbvzmybv9zgvcfw9kzbn0d5sqs6y2hqzq2klsqchcna4b1dn"; + }; + + buildInputs = [ ruby ]; + + installPhase = '' + mkdir -p $out/bin + cp eplot ec $out/bin/ + chmod +x $out/bin/* + + sed -i -e "s|gnuplot -persist|${gnuplot}/bin/gnuplot -persist|" "$out/bin/eplot" + ''; + + meta = with stdenv.lib; { + description = "Create plots quickly with gnuplot"; + longDescription = '' + eplot ("easy gnuplot") is a ruby script which allows to pipe data easily + through gnuplot and create plots quickly, which can be saved in + postscript, PDF, PNG or EMF files. Plotting of multiple files into a + single diagram is supported. + + This package also includes the complementary 'ec' tool (say "extract + column"). + ''; + homepage = http://liris.cnrs.fr/christian.wolf/software/eplot/; + license = licenses.gpl2Plus; + platforms = platforms.all; + }; +}