me
/
guix
Archived
1
0
Fork 0

gnu: Add ocaml-lambda-term.

* gnu/packages/ocaml.scm (ocaml-lambda-term): New variable.
(omca4.07-lambda-term): Inherit and adjust.

Signed-off-by: Julien Lepiller <julien@lepiller.eu>
master
zimoun 2021-11-22 18:37:01 +01:00 committed by Julien Lepiller
parent db542938e2
commit 1221eb5f45
No known key found for this signature in database
GPG Key ID: 53D457B2D636EE82
1 changed files with 43 additions and 21 deletions

View File

@ -4069,31 +4069,32 @@ capabilities, Zed provides macro recording and cursor management facilities.")
"0pa9awinqr0plp4b2az78dwpvh01pwaljnn5ydg8mc6hi7rmir55")))) "0pa9awinqr0plp4b2az78dwpvh01pwaljnn5ydg8mc6hi7rmir55"))))
(properties '())))) (properties '()))))
(define-public ocaml4.07-lambda-term (define-public ocaml-lambda-term
(package (package
(name "ocaml4.07-lambda-term") (name "ocaml-lambda-term")
(version "2.0.2") (version "3.1.0")
(source (home-page "https://github.com/ocaml-community/lambda-term")
(origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
(url "https://github.com/diml/lambda-term") (url home-page)
(commit version))) (commit version)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "0zcjy6fvf0d3i2ssz96asl889n3r6bplyzk7xvb2s3dkxbgcisyy")))) (base32
"1k0ykiz0vhpyyj9fkss29ajas4fh1xh449j702xkvayqipzj1mkg"))))
(build-system dune-build-system) (build-system dune-build-system)
(arguments (arguments
`(#:tests? #f `(#:test-target "."))
#:ocaml ,ocaml-4.07
#:findlib ,ocaml4.07-findlib
#:dune ,ocaml4.07-dune))
(propagated-inputs (propagated-inputs
`(("ocaml-lwt" ,(package-with-ocaml4.07 ocaml-lwt)) `(("ocaml-lwt" ,ocaml-lwt)
("ocaml-lwt-log" ,(package-with-ocaml4.07 ocaml-lwt-log)) ("ocaml-lwt-log" ,ocaml-lwt-log)
("ocaml-lwt-react" ,(package-with-ocaml4.07 ocaml-lwt-react)) ("ocaml-react" ,ocaml-react)
("ocaml-zed" ,ocaml4.07-zed))) ("ocaml-zed" ,ocaml-zed)
(home-page "https://github.com/diml/lambda-term") ("ocaml-camomile" ,ocaml-camomile)
("ocaml-lwt-react" ,ocaml-lwt-react)
("ocaml-mew-vi" ,ocaml-mew-vi)))
(properties `((ocaml4.07-variant . ,(delay ocaml4.07-lambda-term))))
(synopsis "Terminal manipulation library for OCaml") (synopsis "Terminal manipulation library for OCaml")
(description "Lambda-Term is a cross-platform library for manipulating the (description "Lambda-Term is a cross-platform library for manipulating the
terminal. It provides an abstraction for keys, mouse events, colors, as well as terminal. It provides an abstraction for keys, mouse events, colors, as well as
@ -4103,6 +4104,27 @@ manipulation than, for example, ncurses, by providing a native OCaml interface
instead of bindings to a C library.") instead of bindings to a C library.")
(license license:bsd-3))) (license license:bsd-3)))
(define-public ocaml4.07-lambda-term
(package-with-ocaml4.07
(package
(inherit ocaml-lambda-term)
(version "2.0.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/ocaml-community/lambda-term")
(commit version)))
(file-name (git-file-name "ocaml4.07-lambda-term" version))
(sha256
(base32 "0zcjy6fvf0d3i2ssz96asl889n3r6bplyzk7xvb2s3dkxbgcisyy"))))
(propagated-inputs
`(("ocaml-lwt" ,ocaml-lwt)
("ocaml-lwt-log" ,ocaml-lwt-log)
("ocaml-lwt-react" ,ocaml-lwt-react)
("ocaml-zed" ,ocaml-zed)))
(properties '()))))
(define-public ocaml4.07-utop (define-public ocaml4.07-utop
(package (package
(name "ocaml4.07-utop") (name "ocaml4.07-utop")