From 17bd5ebfc4b919dc5eb3b5b5152c8b09bef6f9d4 Mon Sep 17 00:00:00 2001 From: Giacomo Leidi Date: Mon, 15 Sep 2025 14:24:50 +0200 Subject: [PATCH] gnu: Add elixir-decimal. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/elixir-xyz.scm (elixir-decimal): New variable. Change-Id: I1ba26002b8d5e936d2946c51b8fd82cfd96a7cd0 Signed-off-by: Ludovic Courtès --- gnu/packages/elixir-xyz.scm | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/gnu/packages/elixir-xyz.scm b/gnu/packages/elixir-xyz.scm index 0f82f0dcce23121d90424a8e3595ffa803c4465e..9423867287581fd30e080b7976ce360e7c342cb4 100644 --- a/gnu/packages/elixir-xyz.scm +++ b/gnu/packages/elixir-xyz.scm @@ -365,6 +365,27 @@ desired coding style.") (home-page "https://hexdocs.pm/credo/") (license license:expat))) +(define-public elixir-decimal + (package + (name "elixir-decimal") + (version "2.3.0") + (source + (origin + (method url-fetch) + (uri (hexpm-uri "decimal" version)) + (sha256 + (base32 "1b5ffcvvzmzi7gpkahn36z5wyqc3wlli7rrhrz1lgjr9rdan7mm4")))) + (build-system mix-build-system) + (native-inputs + (list elixir-stream-data)) + (synopsis "Arbitrary precision decimal arithmetic") + (description "This package provides @code{elixir-decimal}, a library that +represents values internally using three integers: a sign, a coefficient, and an +exponent. In this way, numbers of any size and with any number of decimal +places can be represented exactly.") + (home-page "https://hexdocs.pm/decimal/") + (license license:asl2.0))) + (define-public elixir-decorator (package (name "elixir-decorator")