gnu: ocaml-llvm: Remove duplicate package.

Commit 8f710cc598 introduced a duplicate
ocaml-llvm@9.0.1 package, which was flagged by a test failure in
tests/packages.scm.

* gnu/packages/ocaml.scm (make-ocaml-llvm): Define as 'mlambdaq'.
This commit is contained in:
Ludovic Courtès 2021-02-22 18:18:36 +01:00
parent 43cef0ba81
commit d8c80c671b
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -87,6 +87,7 @@
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix svn-download) #:use-module (guix svn-download)
#:use-module (guix utils) #:use-module (guix utils)
#:use-module (guix memoization)
#:use-module ((srfi srfi-1) #:hide (zip))) #:use-module ((srfi srfi-1) #:hide (zip)))
;; A shortcut for files from ocaml forge. Downloaded files are computed from ;; A shortcut for files from ocaml forge. Downloaded files are computed from
@ -6198,7 +6199,10 @@ provides support to program with time varying values: declarative events and
client chooses the concrete timeline.") client chooses the concrete timeline.")
(license license:lgpl2.1+))) (license license:lgpl2.1+)))
(define (make-ocaml-llvm llvm) (define make-ocaml-llvm
;; Make it a memoizing procedure so its callers below don't end up defining
;; two equal-but-not-eq "ocaml-llvm" packages for the default LLVM.
(mlambdaq (llvm)
(package (package
(inherit llvm) (inherit llvm)
(name "ocaml-llvm") (name "ocaml-llvm")
@ -6232,7 +6236,7 @@ client chooses the concrete timeline.")
("ocaml-ctypes" ,ocaml-ctypes))) ("ocaml-ctypes" ,ocaml-ctypes)))
(synopsis "OCaml bindings to LLVM") (synopsis "OCaml bindings to LLVM")
(description "This package contains the OCaml bindings distributed with (description "This package contains the OCaml bindings distributed with
LLVM."))) LLVM."))))
(define-public ocaml-llvm (make-ocaml-llvm llvm)) (define-public ocaml-llvm (make-ocaml-llvm llvm))
(define-public ocaml-llvm-9 (make-ocaml-llvm llvm-9)) (define-public ocaml-llvm-9 (make-ocaml-llvm llvm-9))