From 3d10140d2183f473ef6871873a3f3dde8a3bf6d8 Mon Sep 17 00:00:00 2001 From: nixo Date: Fri, 11 Oct 2019 15:13:13 +0200 Subject: [PATCH] gnu: Add julia-nanmath. * gnu/packages/julia-xyz.scm (julia-nanmath-0.3.2): New variable. --- gnu/packages/julia-xyz.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm index b155f36612..f44db20217 100644 --- a/gnu/packages/julia-xyz.scm +++ b/gnu/packages/julia-xyz.scm @@ -1140,3 +1140,37 @@ servers as simple as possible to throw together.") config files, source code - anything. It works by expanding tags in a template using values provided in a hash or object.") (license license:expat))) + +(define-public julia-nanmath + (package + (name "julia-nanmath") + (version "0.3.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mlubin/NaNMath.jl") + (commit (string-append "v" version)))) + (file-name "NaNMath") + (sha256 + (base32 "17cp9fnz8ydl684dkkqbsgi4c6xkd9skwrjyscawns9c1fhnzl2l")))) + (propagated-inputs `(("julia-compat" ,julia-compat))) + (build-system julia-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'precompile 'fix-toml + (lambda* (#:key outputs source #:allow-other-keys) + (julia-create-package-toml + outputs source + "NaNMath" + "77ba4419-2d1f-58cd-9bb1-8ffee604a2e3" + "0.3.2" + '(("Compat" . "34da2185-b29b-5c13-b0c7-acf172513d20"))) + #t))))) + (home-page "https://github.com/mlubin/NaNMath.jl") + (synopsis "Julia math builtins which return NaN and accumulator functions +which ignore NaN") + (description "Implementations of basic math functions which return NaN +instead of throwing a DomainError.") + (license license:expat)))