[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/15: gnu: Add ocaml-4.01.
From: |
Ben Woodcroft |
Subject: |
01/15: gnu: Add ocaml-4.01. |
Date: |
Wed, 10 May 2017 16:15:04 -0400 (EDT) |
benwoodcroft pushed a commit to branch master
in repository guix.
commit ec43671780af0a0e3944e4adbd116479de1eb01e
Author: Ben Woodcroft <address@hidden>
Date: Mon Jan 2 17:18:59 2017 +1000
gnu: Add ocaml-4.01.
* gnu/packages/ocaml.scm (ocaml-4.01): New variable.
---
gnu/packages/ocaml.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index e5e5993..ba90071 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -7,6 +7,7 @@
;;; Copyright © 2016 Jan Nieuwenhuizen <address@hidden>
;;; Copyright © 2016 Efraim Flashner <address@hidden>
;;; Copyright © 2016, 2017 Julien Lepiller <address@hidden>
+;;; Copyright © 2017 Ben Woodcroft <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -212,6 +213,36 @@ functional, imperative and object-oriented styles of
programming.")
;; distributed under lgpl2.0.
(license (list license:qpl license:lgpl2.0))))
+(define-public ocaml-4.01
+ (package
+ (inherit ocaml)
+ (version "4.01.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "http://caml.inria.fr/pub/distrib/ocaml-"
+ (version-major+minor version)
+ "/ocaml-" version ".tar.xz"))
+ (sha256
+ (base32
+ "03d7ida94s1gpr3gadf4jyhmh5rrszd5s4m4z59daaib25rvfyv7"))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments ocaml)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (replace 'build
+ (lambda _
+ ;; Specifying '-j' at all causes the build to fail.
+ (zero? (system* "make" "world.opt"))))
+ (replace 'check
+ (lambda _
+ (with-directory-excursion "testsuite"
+ (zero? (system*
+ "make"
+ "all"
+ (string-append
+ "TOPDIR=" (getcwd) "/.."))))))))))))
+
(define-public opam
(package
(name "opam")
- branch master updated (0d43b12 -> c033f5d), Ben Woodcroft, 2017/05/10
- 05/15: gnu: Add ocaml4.01-sqlite3., Ben Woodcroft, 2017/05/10
- 06/15: gnu: Add ocaml4.01-csv., Ben Woodcroft, 2017/05/10
- 03/15: build-system: Add package-with-ocaml4.01., Ben Woodcroft, 2017/05/10
- 02/15: gnu: Add ocaml4.01-findlib., Ben Woodcroft, 2017/05/10
- 04/15: gnu: Add ocaml4.01-bisect., Ben Woodcroft, 2017/05/10
- 08/15: gnu: Add ocaml4.01-mcl., Ben Woodcroft, 2017/05/10
- 09/15: gnu: Add ocaml4.01-camlzip., Ben Woodcroft, 2017/05/10
- 13/15: gnu: Add ocaml4.01-batteries., Ben Woodcroft, 2017/05/10
- 14/15: gnu: Add taxtastic., Ben Woodcroft, 2017/05/10
- 01/15: gnu: Add ocaml-4.01.,
Ben Woodcroft <=
- 07/15: gnu: Add ocaml4.01-gsl., Ben Woodcroft, 2017/05/10
- 11/15: gnu: Add ocaml4.01-ounit., Ben Woodcroft, 2017/05/10
- 15/15: gnu: Add pplacer., Ben Woodcroft, 2017/05/10
- 10/15: gnu: Add ocaml4.01-qtest., Ben Woodcroft, 2017/05/10
- 12/15: gnu: Add ocaml4.01-xmlm., Ben Woodcroft, 2017/05/10