* [bug#60603] [PATCH] gnu: Add rust-uom
@ 2023-01-06 17:32 Artyom V. Poptsov
2023-05-07 5:50 ` Artyom V. Poptsov
0 siblings, 1 reply; 4+ messages in thread
From: Artyom V. Poptsov @ 2023-01-06 17:32 UTC (permalink / raw)
To: 60603
[-- Attachment #1.1: Type: text/plain, Size: 54 bytes --]
Hello,
this patch series adds "uom"[1] Rust package.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-Add-rust-typenum-1.13.0.patch --]
[-- Type: text/x-diff, Size: 1189 bytes --]
From 401ac46ff0c2dfda04d00240329d7f4a55accef3 Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Fri, 6 Jan 2023 19:40:40 +0300
Subject: [PATCH 1/2] gnu: Add rust-typenum-1.13.0.
* gnu/packages/crates-io.scm (rust-typenum-1.13.0): New variable.
---
gnu/packages/crates-io.scm | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index f0f40207b9..ea20401c65 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -63709,6 +63709,20 @@ (define-public rust-typenum-1
(license (list license:asl2.0
license:expat))))
+(define-public rust-typenum-1.13.0
+ (package
+ (inherit rust-typenum-1)
+ (name "rust-typenum")
+ (version "1.13.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "typenum" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "01lbbspn4080yg8wp6y7q3xcqih1c1dmkkx4pwax4z1a9436k7w7"))))))
+
(define-public rust-ucd-parse-0.1
(package
(name "rust-ucd-parse")
--
2.34.1
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.3: 0002-gnu-Add-rust-uom-0.33.0-and-rust-uom-0.30.0.patch --]
[-- Type: text/x-diff, Size: 3807 bytes --]
From 1a5c0e5f0af8b4de981b2f174634dbcabe0f77c5 Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Fri, 6 Jan 2023 19:43:20 +0300
Subject: [PATCH 2/2] gnu: Add rust-uom-0.33.0 and rust-uom-0.30.0.
* gnu/packages/crates-io.scm (rust-uom-0.33.0, rust-uom-0.30.0): New
variables.
---
gnu/packages/crates-io.scm | 58 ++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index ea20401c65..13f50b9155 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -13023,6 +13023,64 @@ (define-public rust-cpuprofiler-0.0
(description "This package provides bindings to Google's cpu profiler.")
(license license:bsd-2)))
+(define-public rust-uom-0.33.0
+ (package
+ (name "rust-uom")
+ (version "0.33.0")
+ (source (origin
+ (method url-fetch)
+ (uri (crate-uri "uom" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0385hbx8i15izs9ss0cvwv6kdf4mqbfcbzhfxxn0mkyspzh8zrjk"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-num-complex" ,rust-num-complex-0.4)
+ ("rust-num-rational" ,rust-num-rational-0.4)
+ ("rust-num-traits" ,rust-num-traits-0.2)
+ ("rust-typenum" ,rust-typenum-1.13.0)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-num-bigint" ,rust-num-bigint-0.4))
+ #:cargo-development-inputs (("rust-approx" ,rust-approx-0.5)
+ ("rust-quickcheck" ,rust-quickcheck-0.8)
+ ("rust-serde-json" ,rust-serde-json-1)
+ ("rust-static-assertions" ,rust-static-assertions-1))))
+ (home-page "https://github.com/iliekturtles/uom")
+ (synopsis "Units of measurement")
+ (description
+ "@code{uom} (Units of measurement) is a crate that does automatic type-safe
+zero-cost dimensional analysis. You can create your own systems or use the pre-built
+International System of Units (SI) which is based on the International System of
+Quantities (ISQ) and includes numerous quantities (length, mass, time, ...) with
+conversion factors for even more numerous measurement units (meter, kilometer, foot,
+mile, ...).")
+ (license (list license:expat license:asl2.0))))
+
+(define-public rust-uom-0.30.0
+ (package
+ (inherit rust-uom-0.33.0)
+ (name "rust-uom")
+ (version "0.30.0")
+ (source (origin
+ (method url-fetch)
+ (uri (crate-uri "uom" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1vg59hnb7hh0p8kjjhgmrsnn3597722lkfdkp481wksq6vk06rg7"))))
+ (arguments
+ `(#:cargo-inputs (("rust-num-complex" ,rust-num-complex-0.4)
+ ("rust-num-rational" ,rust-num-rational-0.4)
+ ("rust-num-traits" ,rust-num-traits-0.2)
+ ("rust-typenum" ,rust-typenum-1)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-num-bigint" ,rust-num-bigint-0.4))
+ #:cargo-development-inputs (("rust-approx" ,rust-approx-0.3)
+ ("rust-quickcheck" ,rust-quickcheck-0.8)
+ ("rust-serde-json" ,rust-serde-json-1)
+ ("rust-static-assertions" ,rust-static-assertions-1))))))
+
(define-public rust-crates-index-0.18
(package
(name "rust-crates-index")
--
2.34.1
[-- Attachment #1.4: Type: text/plain, Size: 450 bytes --]
The "uom" package is used by the number of other Rust packages, namely
"heim-common"[2] which I'm planning to try to package later.
Thanks,
- avp
References:
1. https://crates.io/crates/uom
2. https://crates.io/crates/heim-common
--
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 519 bytes --]
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#60603] [PATCH] gnu: Add rust-uom
2023-01-06 17:32 [bug#60603] [PATCH] gnu: Add rust-uom Artyom V. Poptsov
@ 2023-05-07 5:50 ` Artyom V. Poptsov
2023-05-28 20:15 ` Artyom V. Poptsov
0 siblings, 1 reply; 4+ messages in thread
From: Artyom V. Poptsov @ 2023-05-07 5:50 UTC (permalink / raw)
To: 60603
[-- Attachment #1.1: Type: text/plain, Size: 70 bytes --]
Hello,
I've rebased my branch on the "master" and updated the patch.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-Add-rust-uom.patch --]
[-- Type: text/x-diff, Size: 2744 bytes --]
From bad7a850871ff7ddd867c9ec7f9aa0989d5108b1 Mon Sep 17 00:00:00 2001
Message-Id: <bad7a850871ff7ddd867c9ec7f9aa0989d5108b1.1683438209.git.poptsov.artyom@gmail.com>
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Fri, 6 Jan 2023 19:43:20 +0300
Subject: [PATCH] gnu: Add rust-uom.
* gnu/packages/crates-io.scm (rust-uom-0.34): New variable.
---
gnu/packages/crates-io.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index a8f4c83336..898a888692 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -13409,6 +13409,40 @@ (define-public rust-cpuprofiler-0.0
(description "This package provides bindings to Google's cpu profiler.")
(license license:bsd-2)))
+(define-public rust-uom-0.34
+ (package
+ (name "rust-uom")
+ (version "0.34.0")
+ (source (origin
+ (method url-fetch)
+ (uri (crate-uri "uom" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "190n79b5ywa9w0j13ld0q6dphz7vzsjkwrpp8pjnwrczsvfhxxg8"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-num-complex" ,rust-num-complex-0.4)
+ ("rust-num-rational" ,rust-num-rational-0.4)
+ ("rust-num-traits" ,rust-num-traits-0.2)
+ ("rust-typenum" ,rust-typenum-1)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-num-bigint" ,rust-num-bigint-0.4))
+ #:cargo-development-inputs (("rust-approx" ,rust-approx-0.5)
+ ("rust-quickcheck" ,rust-quickcheck-0.8)
+ ("rust-serde-json" ,rust-serde-json-1)
+ ("rust-static-assertions" ,rust-static-assertions-1))))
+ (home-page "https://github.com/iliekturtles/uom")
+ (synopsis "Units of measurement")
+ (description
+ "@code{uom} (Units of measurement) is a crate that does automatic type-safe
+zero-cost dimensional analysis. You can create your own systems or use the pre-built
+International System of Units (SI) which is based on the International System of
+Quantities (ISQ) and includes numerous quantities (length, mass, time, ...) with
+conversion factors for even more numerous measurement units (meter, kilometer, foot,
+mile, ...).")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-crates-index-0.18
(package
(name "rust-crates-index")
base-commit: 7612610c44f16fc8f2ff395d9a2d58101a7356aa
--
2.34.1
[-- Attachment #1.3: Type: text/plain, Size: 528 bytes --]
"rust-typenum" was already updated to 1.15 by Christopher Baines so
"0001-gnu-Add-rust-typenum-1.13.0.patch" is not required now.
Also I kept only "rust-uom-0.34" in my patch.
I started to package "rust-uom" because it is required to build Zenith
system monitor:
https://github.com/bvaisvil/zenith
- avp
--
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 519 bytes --]
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#60603] [PATCH] gnu: Add rust-uom
2023-05-07 5:50 ` Artyom V. Poptsov
@ 2023-05-28 20:15 ` Artyom V. Poptsov
2023-06-08 21:17 ` bug#60603: " Ludovic Courtès
0 siblings, 1 reply; 4+ messages in thread
From: Artyom V. Poptsov @ 2023-05-28 20:15 UTC (permalink / raw)
To: 60603
[-- Attachment #1.1: Type: text/plain, Size: 57 bytes --]
Hello,
I've rebased the patch onto the "master" branch.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-Add-rust-uom.patch --]
[-- Type: text/x-diff, Size: 2744 bytes --]
From 2413309f05a0876a2ad4b6dcd450c07fe1961a22 Mon Sep 17 00:00:00 2001
Message-Id: <2413309f05a0876a2ad4b6dcd450c07fe1961a22.1685304694.git.poptsov.artyom@gmail.com>
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Fri, 6 Jan 2023 19:43:20 +0300
Subject: [PATCH] gnu: Add rust-uom.
* gnu/packages/crates-io.scm (rust-uom-0.34): New variable.
---
gnu/packages/crates-io.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index af77a40257..3877f6c977 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -14304,6 +14304,40 @@ (define-public rust-cpuprofiler-0.0
(description "This package provides bindings to Google's cpu profiler.")
(license license:bsd-2)))
+(define-public rust-uom-0.34
+ (package
+ (name "rust-uom")
+ (version "0.34.0")
+ (source (origin
+ (method url-fetch)
+ (uri (crate-uri "uom" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "190n79b5ywa9w0j13ld0q6dphz7vzsjkwrpp8pjnwrczsvfhxxg8"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-num-complex" ,rust-num-complex-0.4)
+ ("rust-num-rational" ,rust-num-rational-0.4)
+ ("rust-num-traits" ,rust-num-traits-0.2)
+ ("rust-typenum" ,rust-typenum-1)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-num-bigint" ,rust-num-bigint-0.4))
+ #:cargo-development-inputs (("rust-approx" ,rust-approx-0.5)
+ ("rust-quickcheck" ,rust-quickcheck-0.8)
+ ("rust-serde-json" ,rust-serde-json-1)
+ ("rust-static-assertions" ,rust-static-assertions-1))))
+ (home-page "https://github.com/iliekturtles/uom")
+ (synopsis "Units of measurement")
+ (description
+ "@code{uom} (Units of measurement) is a crate that does automatic type-safe
+zero-cost dimensional analysis. You can create your own systems or use the pre-built
+International System of Units (SI) which is based on the International System of
+Quantities (ISQ) and includes numerous quantities (length, mass, time, ...) with
+conversion factors for even more numerous measurement units (meter, kilometer, foot,
+mile, ...).")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-crates-index-0.18
(package
(name "rust-crates-index")
base-commit: 9845e408e533f5834a13f294ca1ddc1dc7e248fd
--
2.34.1
[-- Attachment #1.3: Type: text/plain, Size: 258 bytes --]
Could you please review it?
Thanks,
- avp
--
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 519 bytes --]
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#60603: [PATCH] gnu: Add rust-uom
2023-05-28 20:15 ` Artyom V. Poptsov
@ 2023-06-08 21:17 ` Ludovic Courtès
0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2023-06-08 21:17 UTC (permalink / raw)
To: Artyom V. Poptsov; +Cc: 60603-done
Hi Artyom,
"Artyom V. Poptsov" <poptsov.artyom@gmail.com> skribis:
> From 2413309f05a0876a2ad4b6dcd450c07fe1961a22 Mon Sep 17 00:00:00 2001
> Message-Id: <2413309f05a0876a2ad4b6dcd450c07fe1961a22.1685304694.git.poptsov.artyom@gmail.com>
> From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
> Date: Fri, 6 Jan 2023 19:43:20 +0300
> Subject: [PATCH] gnu: Add rust-uom.
>
> * gnu/packages/crates-io.scm (rust-uom-0.34): New variable.
Sorry that it took so long. Applied!
Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-06-08 21:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-06 17:32 [bug#60603] [PATCH] gnu: Add rust-uom Artyom V. Poptsov
2023-05-07 5:50 ` Artyom V. Poptsov
2023-05-28 20:15 ` Artyom V. Poptsov
2023-06-08 21:17 ` bug#60603: " Ludovic Courtès
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.