From 57ba3dac9c697df3ff84d9e86d91b66566bc01d8 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Fri, 29 Jul 2022 02:08:00 +0300 Subject: gnu: pplacer: Fix building. * gn/packages/ocaml.scm (ocaml4.07-lwt-5.5.0): New variable. (build-with-ocaml4.07): New procedure. * gn/packages/bioinformatics.scm (pplacer): Wrap with build-with-ocaml4.07. --- gn/packages/ocaml.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 gn/packages/ocaml.scm (limited to 'gn/packages/ocaml.scm') diff --git a/gn/packages/ocaml.scm b/gn/packages/ocaml.scm new file mode 100644 index 0000000..4aa2543 --- /dev/null +++ b/gn/packages/ocaml.scm @@ -0,0 +1,27 @@ +(define-module (gn packages ocaml) + #:use-module (guix packages) + #:use-module (guix git-download) + #:use-module (guix build-system ocaml) + #:use-module (gnu packages) + #:use-module (gnu packages ocaml)) + +;; This is the last version supported by ocaml-4.07. +(define-public ocaml4.07-lwt-5.5.0 + (package-with-ocaml4.07 + (package + (inherit ocaml-lwt) + (name "ocaml-lwt") + (version "5.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ocsigen/lwt") + (commit version))) + (file-name (git-file-name name version)) + (sha256 (base32 + "1jbjz2rsz3j56k8vh5qlmm87hhkr250bs2m3dvpy9vsri8rkzj9z")))) + (properties '())))) + +(define-public build-with-ocaml4.07 + (package-input-rewriting/spec `(("ocaml4.07-lwt" . ,(const ocaml4.07-lwt-5.5.0))))) -- cgit v1.2.3