[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/11: gnu: Add ghc-gnuplot.
From: |
Federico Beffa |
Subject: |
11/11: gnu: Add ghc-gnuplot. |
Date: |
Mon, 31 Oct 2016 15:14:19 +0000 (UTC) |
beffa pushed a commit to branch master
in repository guix.
commit 1a86b671cef2a65f437758f35e73f48b0ed41fb7
Author: Federico Beffa <address@hidden>
Date: Mon Oct 24 17:49:35 2016 +0200
gnu: Add ghc-gnuplot.
* gnu/packages/haskell.scm (ghc-gnuplot): New variable.
---
gnu/packages/haskell.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 2c53fdf..331057a 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -7960,4 +7960,38 @@ Accessor to access state in transformers State monad.")
helper functions for Lists, Maybes, Tuples, Functions.")
(license license:bsd-3)))
+(define-public ghc-gnuplot
+ (package
+ (name "ghc-gnuplot")
+ (version "0.5.4.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://package/gnuplot/gnuplot-"
+ version ".tar.gz"))
+ (sha256
+ (base32 "1xz8prw9xjk0rsyrkp9bsmxykzrbhpv9qhhkdapy75mdbmgwjm7s"))))
+ (build-system haskell-build-system)
+ (inputs
+ `(("ghc-temporary" ,ghc-temporary)
+ ("ghc-utility-ht" ,ghc-utility-ht)
+ ("ghc-data-accessor-transformers" ,ghc-data-accessor-transformers)
+ ("ghc-data-accessor" ,ghc-data-accessor)
+ ("gnuplot" ,gnuplot)))
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'configure 'fix-path-to-gnuplot
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((gnuplot (assoc-ref inputs "gnuplot")))
+ (substitute* "os/generic/Graphics/Gnuplot/Private/OS.hs"
+ (("(gnuplotName = ).*$" all cmd)
+ (string-append cmd "\"" gnuplot "/bin/gnuplot\"")))))))))
+ (home-page "http://www.haskell.org/haskellwiki/Gnuplot")
+ (synopsis "2D and 3D plots using gnuplot")
+ (description "This package provides a Haskell module for creating 2D and
+3D plots using gnuplot.")
+ (license license:bsd-3)))
+
;;; haskell.scm ends here
- branch master updated (c907bee -> 1a86b67), Federico Beffa, 2016/10/31
- 02/11: gnu: Add emacs-el-search., Federico Beffa, 2016/10/31
- 03/11: gnu: haskell-mode: Update to 16.1., Federico Beffa, 2016/10/31
- 05/11: gnu: Add chez-scmutils., Federico Beffa, 2016/10/31
- 07/11: download: Add Hackage mirrors., Federico Beffa, 2016/10/31
- 08/11: gnu: Add ghc-data-accessor., Federico Beffa, 2016/10/31
- 09/11: gnu: Add ghc-data-access-transformers., Federico Beffa, 2016/10/31
- 04/11: gnu: Add chez-mit., Federico Beffa, 2016/10/31
- 06/11: gnu: geiser-next: Re-introduce it., Federico Beffa, 2016/10/31
- 01/11: gnu: Add emacs-stream., Federico Beffa, 2016/10/31
- 11/11: gnu: Add ghc-gnuplot.,
Federico Beffa <=
- 10/11: gnu: Add ghc-utility-ht., Federico Beffa, 2016/10/31