>From a7a34a28d99bd9411d18e0e7f3d4efb406f2a817 Mon Sep 17 00:00:00 2001 From: nixo Date: Mon, 24 Feb 2020 15:33:08 +0100 Subject: [PATCH 05/16] gnu: Add julia-sha. * gnu/packages/julia-xyz.scm (julia-sha): New variable. --- gnu/packages/julia-xyz.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm index abcfc4d0cf..91d497a0ce 100644 --- a/gnu/packages/julia-xyz.scm +++ b/gnu/packages/julia-xyz.scm @@ -43,3 +43,27 @@ between older and newer versions of the Julia language. The Compat package provides a macro that lets you use the latest syntax in a backwards-compatible way.") (license license:expat))) + +(define-public julia-sha + (package + (name "julia-sha") + (version "0.5.7") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/staticfloat/SHA.jl") + ;; tests fixed in this untagged version + (commit "97b17a7fabf894257726c33cbd78255ac380906d"))) + (file-name "SHA") + (sha256 + (base32 "169y78cmppj117cmh8ncnyh381caf9dsklaks5l40mia9jdcqbgl")))) + (build-system julia-build-system) + (propagated-inputs `(("julia-compat" ,julia-compat))) + (home-page "https://github.com/staticfloat/SHA.jl") + (synopsis + "Performant, 100% native-julia SHA1, SHA2, and SHA3 implementation") + (description "Julia package implementing SHA algorithms. Each exported +function takes in either an @code{Array{UInt8}}, a @code{ByteString} or an +@code{IO} object.") + (license license:expat))) -- 2.25.0