From ae91cdaf306c99f87647714e45c4a16aca863152 Mon Sep 17 00:00:00 2001 From: nixo Date: Fri, 11 Oct 2019 15:55:03 +0200 Subject: [PATCH] gnu: Add julia-measures. * gnu/packages/julia-xyz.scm (julia-measures-0.3.0): 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 f44db20217..d965091b3f 100644 --- a/gnu/packages/julia-xyz.scm +++ b/gnu/packages/julia-xyz.scm @@ -1174,3 +1174,37 @@ which ignore NaN") (description "Implementations of basic math functions which return NaN instead of throwing a DomainError.") (license license:expat))) + +(define-public julia-measures + (package + (name "julia-measures") + (version "0.3.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/JuliaGraphics/Measures.jl") + (commit (string-append "v" version)))) + (file-name "Measures") + (sha256 + (base32 "020yf4a7wmm0jhkpzxgz4bif2l4l0zmrzagz0gc2hrvnz0kp9m3b")))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'precompile 'fix-toml + (lambda* (#:key outputs source #:allow-other-keys) + (julia-create-package-toml + outputs source + "Measures" + "442fdcdd-2543-5da2-b0f3-8c86c306513e" + "0.3.0" + '()) + #t))))) + (build-system julia-build-system) + (home-page "https://github.com/JuliaGraphics/Measures.jl") + (synopsis "Unified measure and coordinates types") + (description "This library generalizes and unifies the notion of measures +used in @code{Compose}, @code{Compose3D}, and @code{Escher}. It allows +building up and representing expressions involving differing types of units +that are then evaluated, resolving them into absolute units.") + (license license:expat)))