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)))