mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-13 06:36:37 -05:00
gnu: Add ocaml-stdcompat.
* gnu/packages/ocaml.scm (ocaml-stdcompat): New variable. Signed-off-by: Jean-Pierre De Jesus DIAZ <jean@foundationdevices.com> Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
bb7f978e60
commit
4017fae4e0
1 changed files with 46 additions and 0 deletions
|
@ -4606,6 +4606,52 @@ (define-public ocaml-expect
|
|||
or a timeout.")
|
||||
(license license:lgpl2.1+))) ; with the OCaml static compilation exception
|
||||
|
||||
(define-public ocaml-stdcompat
|
||||
(package
|
||||
(name "ocaml-stdcompat")
|
||||
(version "19")
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/thierry-martinez/stdcompat")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(modules '((guix build utils)))
|
||||
(snippet
|
||||
#~(for-each delete-file '("Makefile.in" "configure")))
|
||||
(sha256
|
||||
(base32
|
||||
"0r9qcfjkn8634lzxp5bkagzwsi3vmg0hb6vq4g1p1515rys00h1b"))))
|
||||
(build-system dune-build-system)
|
||||
(arguments
|
||||
(list #:imported-modules `((guix build gnu-build-system)
|
||||
,@%dune-build-system-modules)
|
||||
#:modules '((guix build dune-build-system)
|
||||
((guix build gnu-build-system) #:prefix gnu:)
|
||||
(guix build utils))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'bootstrap
|
||||
(assoc-ref gnu:%standard-phases 'bootstrap))
|
||||
(add-before 'build 'prepare-build
|
||||
(lambda _
|
||||
(let ((bash (which "bash")))
|
||||
(setenv "CONFIG_SHELL" bash)
|
||||
(setenv "SHELL" bash)))))))
|
||||
(native-inputs
|
||||
(list autoconf
|
||||
automake
|
||||
ocaml
|
||||
ocaml-findlib))
|
||||
(home-page "https://github.com/thierry-martinez/stdcompat")
|
||||
(synopsis "Compatibility module for OCaml standard library")
|
||||
(description
|
||||
"Compatibility module for OCaml standard library allowing programs to use
|
||||
some recent additions to the standard library while preserving the ability to
|
||||
be compiled on former versions of OCaml.")
|
||||
(license license:bsd-2)))
|
||||
|
||||
(define-public ocaml-stdlib-shims
|
||||
(package
|
||||
(name "ocaml-stdlib-shims")
|
||||
|
|
Loading…
Reference in a new issue