summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMitsuhiro Nakamura <m.nacamura@gmail.com>2018-06-28 04:22:20 +0900
committerMitsuhiro Nakamura <m.nacamura@gmail.com>2018-06-28 12:21:54 +0900
commit62620340363674a053ef5db77d391575abf9d162 (patch)
tree0f296d4801dd89c4d1fc6386ea996a02fb8376b0 /pkgs
parentb96c0e6d7b57cdc9caaf6f4fae8e1ab0dfec11cd (diff)
downloadnixpkgs-62620340363674a053ef5db77d391575abf9d162.tar
nixpkgs-62620340363674a053ef5db77d391575abf9d162.tar.gz
nixpkgs-62620340363674a053ef5db77d391575abf9d162.tar.bz2
nixpkgs-62620340363674a053ef5db77d391575abf9d162.tar.lz
nixpkgs-62620340363674a053ef5db77d391575abf9d162.tar.xz
nixpkgs-62620340363674a053ef5db77d391575abf9d162.tar.zst
nixpkgs-62620340363674a053ef5db77d391575abf9d162.zip
feedgnuplot: init at 1.49
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/graphics/feedgnuplot/default.nix50
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/feedgnuplot/default.nix b/pkgs/tools/graphics/feedgnuplot/default.nix
new file mode 100644
index 00000000000..58b1e7a9dc9
--- /dev/null
+++ b/pkgs/tools/graphics/feedgnuplot/default.nix
@@ -0,0 +1,50 @@
+{ stdenv, fetchFromGitHub, buildPerlPackage, makeWrapper, gawk
+, makeFontsConf, freefont_ttf, gnuplot, perl, perlPackages
+}:
+
+let
+
+  fontsConf = makeFontsConf { fontDirectories = [ freefont_ttf ]; };
+
+in
+
+buildPerlPackage rec {
+  name = "feedgnuplot-${version}";
+  version = "1.49";
+
+  src = fetchFromGitHub {
+    owner = "dkogan";
+    repo = "feedgnuplot";
+    rev = "v${version}";
+    sha256 = "1bjnx36rsxlj845w9apvdjpza8vd9rbs3dlmgvky6yznrwa6sm02";
+  };
+
+  nativeBuildInputs = [ makeWrapper gawk ];
+
+  buildInputs = [ gnuplot perl ]
+    ++ (with perlPackages; [ ListMoreUtils IPCRun StringShellQuote ]);
+
+  # Fontconfig error: Cannot load default config file
+  FONTCONFIG_FILE = fontsConf;
+
+  postPatch = ''
+    patchShebangs .
+  '';
+
+  doCheck = true;
+
+  postInstall = ''
+    wrapProgram $out/bin/feedgnuplot \
+        --prefix "PATH" ":" "$PATH" \
+        --prefix "PERL5LIB" ":" "$PERL5LIB"
+  '';
+
+
+  meta = with stdenv.lib; {
+    description = "General purpose pipe-oriented plotting tool";
+    homepage = https://github.com/dkogan/feedgnuplot/;
+    license = with licenses; [ artistic1 gpl1Plus ];
+    platforms = platforms.unix;
+    maintainers = with maintainers; [ mnacamura ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 507f3ee5d84..a8968df6687 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -2429,6 +2429,8 @@ with pkgs;
 
   fdk_aac = callPackage ../development/libraries/fdk-aac { };
 
+  feedgnuplot = callPackage ../tools/graphics/feedgnuplot { };
+
   fim = callPackage ../tools/graphics/fim { };
 
   flac123 = callPackage ../applications/audio/flac123 { };