From 2e88d5ff12b5e83a277dfb7f7ff658f4d8f11fb8 Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Fri, 5 Aug 2022 14:15:34 +0200 Subject: [PATCH v4 30/37] gnu: Add rust-funty-2. * gnu/packages/crates-io.scm (rust-funty-2): New variable. (rust-funty-2): Inherit from above. diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 9bb0f1f541..64f4d9de4e 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -23294,8 +23294,31 @@ (define-public rust-fuchsia-zircon-sys-0.3 (description "Low-level Rust bindings for the Zircon kernel.") (license license:bsd-3))) +(define-public rust-funty-2 + (package + (name "rust-funty") + (version "2.0.0") + (source (origin + (method url-fetch) + (uri (crate-uri "funty" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "177w048bm0046qlzvp33ag3ghqkqw4ncpzcm5lq36gxf2lla7mg6")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t)) + (home-page "https://github.com/myrrlyn/funty") + (synopsis "Trait generalization over the primitive types") + (description + "Prior to 1.0, Rust had traits for the numeric primitive types to permit +code to generalize over which specific type it accepted. This was never +stabilized, and eventually removed. This library reïnstates these traits.") + (license license:expat))) + (define-public rust-funty-1 (package + (inherit rust-funty-2) (name "rust-funty") (version "1.2.0") (source @@ -23310,14 +23333,7 @@ (define-public rust-funty-1 (build-system cargo-build-system) (arguments `(#:cargo-development-inputs - (("rust-static-assertions" ,rust-static-assertions-1)))) - (home-page "https://github.com/myrrlyn/funty") - (synopsis "Trait generalization over the primitive types") - (description - "Prior to 1.0, Rust had traits for the numeric primitive types to permit -code to generalize over which specific type it accepted. This was never -stabilized, and eventually removed. This library reïnstates these traits.") - (license license:expat))) + (("rust-static-assertions" ,rust-static-assertions-1)))))) (define-public rust-funty-1.1 (package -- 2.37.0