Archived
1
0
Fork 0

gnu: ocaml-bitsring: Update to 4.1.0.

* gnu/packages/ocaml.scm (ocaml-bitstring): Update to 4.1.0.
(ocaml4.07-bitstring): New variable.
This commit is contained in:
Julien Lepiller 2021-11-20 01:12:45 +01:00
parent 27c701a17b
commit 718700cc95
No known key found for this signature in database
GPG key ID: 53D457B2D636EE82

View file

@ -1845,22 +1845,23 @@ ocaml-migrate-parsetree")
(define-public ocaml-bitstring (define-public ocaml-bitstring
(package (package
(name "ocaml-bitstring") (name "ocaml-bitstring")
(version "3.1.0") (version "4.1.0")
(source (origin (source (origin
(method url-fetch) (method git-fetch)
(uri (string-append "https://bitbucket.org/thanatonauts/bitstring/" (uri (git-reference
"get/v" version ".tar.gz")) (url "https://github.com/xguerin/bitstring")
(file-name (string-append name "-" version ".tar.gz")) (commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"15jjk2pq1vx311gl49s5ag6x5y0654x35w75z07g7kr2q334hqps")))) "0mghsl8b2zd2676mh1r9142hymhvzy9cw8kgkjmirxkn56wbf56b"))))
(build-system dune-build-system) (build-system dune-build-system)
(native-inputs (native-inputs
`(("time" ,time) `(("time" ,time)
("autoconf" ,autoconf) ("autoconf" ,autoconf)
("automake" ,automake))) ("automake" ,automake)))
(propagated-inputs (propagated-inputs
`(("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned))) `(("ocaml-stdlib-shims" ,ocaml-stdlib-shims)))
(arguments (arguments
`(#:package "bitstring" `(#:package "bitstring"
#:tests? #f; Tests fail to build #:tests? #f; Tests fail to build
@ -1870,6 +1871,7 @@ ocaml-migrate-parsetree")
(lambda _ (lambda _
(invoke "dune" "upgrade") (invoke "dune" "upgrade")
#t))))) #t)))))
(properties `((ocaml4.07-variant . ,(delay ocaml4.07-bitstring))))
(home-page "https://github.com/xguerin/bitstring") (home-page "https://github.com/xguerin/bitstring")
(synopsis "Bitstrings and bitstring matching for OCaml") (synopsis "Bitstrings and bitstring matching for OCaml")
(description "Adds Erlang-style bitstrings and matching over bitstrings as (description "Adds Erlang-style bitstrings and matching over bitstrings as
@ -1878,6 +1880,23 @@ and generate binary formats, files and protocols. Bitstring handling is added
as primitives to the language, making it exceptionally simple to use and very as primitives to the language, making it exceptionally simple to use and very
powerful.") powerful.")
(license license:isc))) (license license:isc)))
(define-public ocaml4.07-bitstring
(package-with-ocaml4.07
(package
(inherit ocaml-bitstring)
(version "3.1.0")
(source (origin
(method url-fetch)
(uri (string-append "https://bitbucket.org/thanatonauts/bitstring/"
"get/v" version ".tar.gz"))
(file-name (string-append "ocaml-bitsring-" version ".tar.gz"))
(sha256
(base32
"15jjk2pq1vx311gl49s5ag6x5y0654x35w75z07g7kr2q334hqps"))))
(propagated-inputs
`(("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned)))
(properties '()))))
(define-public ocaml-result (define-public ocaml-result
(package (package