gnu: ocaml-migrate-parstree-1: Only build ocaml4.07 variant.

* gnu/packages/ocaml.scm (ocaml-migrate-parsetree-1): Rename to...
(ocaml4.07-migrate-parsetree): ...this.  Use package-with-ocaml4.07.
This commit is contained in:
Julien Lepiller 2021-12-22 23:01:56 +01:00
parent 92c63bc491
commit 2ac1441015
No known key found for this signature in database
GPG key ID: 53D457B2D636EE82

View file

@ -1810,18 +1810,19 @@ (define-public ocaml-migrate-parsetree
(propagated-inputs (propagated-inputs
(list ocaml-ppx-derivers ocamlbuild ocaml-result)) (list ocaml-ppx-derivers ocamlbuild ocaml-result))
(properties `((upstream-name . "ocaml-migrate-parsetree") (properties `((upstream-name . "ocaml-migrate-parsetree")
;; OCaml 4.07 packages require version 1.* (ocaml4.07-variant . ,(delay ocaml4.07-migrate-parsetree))))
(ocaml4.07-variant . ,(delay (package-with-ocaml4.07 ocaml-migrate-parsetree-1)))))
(synopsis "OCaml parsetree converter") (synopsis "OCaml parsetree converter")
(description "This library converts between parsetrees of different OCaml (description "This library converts between parsetrees of different OCaml
versions. For each version, there is a snapshot of the parsetree and conversion versions. For each version, there is a snapshot of the parsetree and conversion
functions to the next and/or previous version.") functions to the next and/or previous version.")
(license license:lgpl2.1+))) (license license:lgpl2.1+)))
(define-public ocaml-migrate-parsetree-1 ;; OCaml 4.07 packages require version 1.*
(define-public ocaml4.07-migrate-parsetree
(package-with-ocaml4.07
(package (package
(inherit ocaml-migrate-parsetree) (inherit ocaml-migrate-parsetree)
(name "ocaml-migrate-parsetree-1") (name "ocaml-migrate-parsetree")
(version "1.8.0") (version "1.8.0")
(home-page "https://github.com/ocaml-ppx/ocaml-migrate-parsetree") (home-page "https://github.com/ocaml-ppx/ocaml-migrate-parsetree")
(source (source
@ -1834,7 +1835,7 @@ (define-public ocaml-migrate-parsetree-1
(sha256 (sha256
(base32 (base32
"16x8sxc4ygxrr1868qpzfqyrvjf3hfxvjzmxmf6ibgglq7ixa2nq")))) "16x8sxc4ygxrr1868qpzfqyrvjf3hfxvjzmxmf6ibgglq7ixa2nq"))))
(properties '((upstream-name . "ocaml-migrate-parsetree"))))) (properties '((upstream-name . "ocaml-migrate-parsetree"))))))
(define-public ocaml4.07-ppx-tools-versioned (define-public ocaml4.07-ppx-tools-versioned
(package-with-ocaml4.07 (package-with-ocaml4.07