gnu: ocaml5: Add ocaml-sha.

* gnu/packages/ocaml5.scm (ocaml-sha): New variable.

Change-Id: Iee12f864a33ef086ee9739b7ac701db9a78b3a1a
Signed-off-by: Julien Lepiller <julien@lepiller.eu>
This commit is contained in:
Jason Conroy
2026-02-04 10:26:56 -05:00
committed by Julien Lepiller
parent 745f701a4c
commit 91708e1f20

View File

@@ -2386,6 +2386,30 @@ repository-wide uninstallability checks.")
;; with static-linking exception
(license license:lgpl2.1+)))
(define-public ocaml-sha
(package
(name "ocaml5-sha")
(version "1.15.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/djs55/ocaml-sha")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "0fpvfa522zx0rb5n7y3agklp4acpwbr430zg4qmfx1vwsxyx44mc"))))
(build-system dune-build-system)
(propagated-inputs (list ocaml-stdlib-shims ocaml-odoc))
(native-inputs (list ocaml-ounit2))
(home-page "https://github.com/djs55/ocaml-sha")
(synopsis "OCaml binding to the SHA cryptographic functions")
(description
"This is the binding for SHA interface code in OCaml, offering the same
interface as the MD5 digest included in the OCaml standard library. It
currently provides SHA1, SHA256 and SHA512 hash functions.")
(license license:isc)))
;;;
;;; Avoid adding new packages to the end of this file. To reduce the chances
;;; of a merge conflict, place them above by existing packages with similar