From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6J47H/Hjal/beAAA0tVLHw (envelope-from ) for ; Wed, 23 Sep 2020 05:58:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id SGMHG/Hjal+KCwAAB5/wlQ (envelope-from ) for ; Wed, 23 Sep 2020 05:58:09 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D858294042B for ; Wed, 23 Sep 2020 05:58:08 +0000 (UTC) Received: from localhost ([::1]:48028 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kKxn5-0003d7-SB for larch@yhetil.org; Wed, 23 Sep 2020 01:58:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kKxn0-0003cy-5H for guix-patches@gnu.org; Wed, 23 Sep 2020 01:58:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50968) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kKxmz-0003Xc-SJ for guix-patches@gnu.org; Wed, 23 Sep 2020 01:58:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kKxmz-0002AQ-Rp for guix-patches@gnu.org; Wed, 23 Sep 2020 01:58:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43514] [PATCH 1/3] gnu: Add rust-stfu8. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 23 Sep 2020 05:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43514 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Gabriel Arazas Cc: 43514@debbugs.gnu.org Received: via spool by 43514-submit@debbugs.gnu.org id=B43514.16008406468267 (code B ref 43514); Wed, 23 Sep 2020 05:58:01 +0000 Received: (at 43514) by debbugs.gnu.org; 23 Sep 2020 05:57:26 +0000 Received: from localhost ([127.0.0.1]:34281 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKxmQ-00029H-9b for submit@debbugs.gnu.org; Wed, 23 Sep 2020 01:57:26 -0400 Received: from flashner.co.il ([178.62.234.194]:52076) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKxmO-000292-E6 for 43514@debbugs.gnu.org; Wed, 23 Sep 2020 01:57:24 -0400 Received: from localhost (unknown [31.210.181.177]) by flashner.co.il (Postfix) with ESMTPSA id 64EF740049; Wed, 23 Sep 2020 05:57:18 +0000 (UTC) Date: Wed, 23 Sep 2020 08:56:45 +0300 From: Efraim Flashner Message-ID: <20200923055645.GD896@E5400> References: <20200919160452.1281-1-foo.dogsquared@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="n/aVsWSeQ4JHkrmm" Content-Disposition: inline In-Reply-To: <20200919160452.1281-1-foo.dogsquared@gmail.com> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-Spam-Score: 4.8 (++++) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: 3.8 (+++) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 1.69 X-TUID: 9uEtJ93bm4G8 --n/aVsWSeQ4JHkrmm Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Can you split this into multiple commits? We prefer one package per commit (unless they're too closely connected) and it makes it easier to review. On Sun, Sep 20, 2020 at 12:04:54AM +0800, Gabriel Arazas wrote: > * gnu/packages/crates-io.scm (rust-stfu8-0.2): New variable. > * gnu/packages/crates-io.scm (rust-pretty-assertions-0.4): New variable. > * gnu/packages/crates-io.scm (rust-ansi-term-0.9): New variable. > * gnu/packages/crates-io.scm (rust-proptest-0.3): New variable. > * gnu/packages/crates-io.scm (rust-bit-set-0.4): New variable. > * gnu/packages/crates-io.scm (rust-bit-vec-0.4): New variable. If you put another dashed line (---) above your comment it doesn't show up when the patch gets applied. >=20 > Part 2 of packaging bat with a bunch of missing dependencies. > Here's what I've finished for now. > Tested them all with ~guix build --rounds=3D4~ with only the x86_64 arch = for now since I'm getting low disk space at the time. > --- > gnu/packages/crates-io.scm | 132 +++++++++++++++++++++++++++++++++++++ > 1 file changed, 132 insertions(+) >=20 > diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm > index 31f6e674f5..304b37e4df 100644 > --- a/gnu/packages/crates-io.scm > +++ b/gnu/packages/crates-io.scm > @@ -520,6 +520,22 @@ text or blue underlined text, on ANSI terminals.") > #:cargo-inputs > (("rust-winapi" ,rust-winapi-0.3)))))) > =20 > +(define-public rust-ansi-term-0.9 > + (package > + (inherit rust-ansi-term-0.11) > + (name "rust-ansi-term") > + (version "0.9.0") > + (source > + (origin > + (method url-fetch) > + (uri (crate-uri "ansi_term" version)) > + (file-name > + (string-append name "-" version ".tar.gz")) > + (sha256 > + (base32 > + "1xif1bh938qpfc3d0f9xgidibpm65xix11w9gszwqnia00q7rb13")))) > + (arguments `()))) > + > (define-public rust-antidote-1.0 > (package > (name "rust-antidote") > @@ -1761,6 +1777,27 @@ that uses Serde for transforming structs into byte= s and vice versa!") > "This package provides a set of bits.") > (license (list license:asl2.0 license:expat)))) > =20 > +(define-public rust-bit-set-0.4 > + (package > + (inherit rust-bit-set-0.5) > + (name "rust-bit-set") > + (version "0.4.0") > + (source > + (origin > + (method url-fetch) > + (uri (crate-uri "bit-set" version)) > + (file-name > + (string-append name "-" version ".tar.gz")) > + (sha256 > + (base32 > + "0320hhcbr73yzjpj2237vw2zq728yg7vmzb8dardg04ff4263gyr")))) > + (build-system cargo-build-system) > + (arguments > + `(#:cargo-inputs > + (("rust-bit-vec" ,rust-bit-vec-0.4)) > + #:cargo-development-inputs > + (("rust-rand" ,rust-rand-0.3)))))) > + > (define-public rust-bit-vec-0.5 > (package > (name "rust-bit-vec") > @@ -1787,6 +1824,24 @@ that uses Serde for transforming structs into byte= s and vice versa!") > "This package provides a vector of bits.") > (license (list license:expat license:asl2.0)))) > =20 > +(define-public rust-bit-vec-0.4 > + (package > + (inherit rust-bit-vec-0.5) > + (name "rust-bit-vec") > + (version "0.4.4") > + (source > + (origin > + (method url-fetch) > + (uri (crate-uri "bit-vec" version)) > + (file-name > + (string-append name "-" version ".tar.gz")) > + (sha256 > + (base32 > + "0pw902a8ail0k64a7092a8vngfzsq7xkj2r22hz6q1z62s5zzd02")))) > + (arguments > + `(#:cargo-development-inputs > + (("rust-rand" ,rust-rand-0.3)))))) > + > (define-public rust-bitflags-1 > (package > (name "rust-bitflags") > @@ -18804,6 +18859,27 @@ dependency to expose a precomputed hash.") > replacements, adding colorful diffs.") > (license (list license:expat license:asl2.0)))) > =20 > +(define-public rust-pretty-assertions-0.4 > + (package > + (inherit rust-pretty-assertions-0.6) > + (name "rust-pretty-assertions") > + (version "0.4.1") > + (source > + (origin > + (method url-fetch) > + (uri (crate-uri "pretty_assertions" version)) > + (file-name > + (string-append name "-" version ".tar.gz")) > + (sha256 > + (base32 > + "1llxlnhh4qz9kda27v6nllgzvgi1fv08i3djfk4zn6zlw8c53si8")))) > + (build-system cargo-build-system) > + (arguments > + `(#:skip-build? #t > + #:cargo-inputs > + (("rust-ansi-term" ,rust-ansi-term-0.9) > + ("rust-difference" ,rust-difference-1)))))) > + > (define-public rust-pretty-assertions-0.2 > (package > (name "rust-pretty-assertions") > @@ -19233,6 +19309,30 @@ macro use case.") > #:cargo-development-inputs > (("rust-regex" ,rust-regex-0.2)))))) > =20 > +(define-public rust-proptest-0.3 > + (package > + (inherit rust-proptest-0.7) > + (name "rust-proptest") > + (version "0.3.4") > + (source > + (origin > + (method url-fetch) > + (uri (crate-uri "proptest" version)) > + (file-name > + (string-append name "-" version ".tar.gz")) > + (sha256 > + (base32 > + "15633iq8x3x0im5vyij2gr8ncpflv4fa9w63rh94k20xhzv4m308")))) > + (arguments > + `(#:cargo-inputs > + (("rust-bit-set" ,rust-bit-set-0.4) > + ("rust-lazy-static" ,rust-lazy-static-0.2) > + ("rust-quick-error" ,rust-quick-error-1.2) > + ("rust-rand" ,rust-rand-0.3) > + ("rust-regex-syntax" ,rust-regex-syntax-0.4)) > + #:cargo-development-inputs > + (("rust-regex" ,rust-regex-0.2)))))) > + > (define-public rust-psm-0.1 > (package > (name "rust-psm") > @@ -25027,6 +25127,38 @@ crate.") > (license (list license:asl2.0 > license:expat)))) > =20 > +(define-public rust-stfu8-0.2 > + (package > + (name "rust-stfu8") > + (version "0.2.4") > + (source > + (origin > + (method url-fetch) > + (uri (crate-uri "stfu8" version)) > + (file-name > + (string-append name "-" version ".tar.gz")) > + (sha256 > + (base32 > + "0xyv4axwc9rihg3f5fjdy7s0ahnz1iq6lq06blwkq2ihwcrh9xsb")))) > + (build-system cargo-build-system) > + (arguments > + `(#:cargo-inputs > + (("rust-lazy-static" ,rust-lazy-static-1) > + ("rust-regex" ,rust-regex-0.2)) > + #:cargo-development-inputs > + (("rust-pretty-assertions" > + ,rust-pretty-assertions-0.4) > + ("rust-proptest" ,rust-proptest-0.3)))) > + (home-page "https://github.com/vitiral/stfu8") > + (synopsis "Sorta Text Format in UTF-8") > + (description > + "STFU-8 is a hacky text encoding/decoding protocol for files that > +partially uses UTF-8. Its primary purpose is to allow a human to visual= ize and > +edit data that is mostly UTF-8. It will encode all non-UTF8-compliant b= ytes as > +longform text (e.g., ESC becomes @code{r\x1B}) and tries to encode ill-f= ormed > +UTF-8.") > + (license (list license:expat license:asl2.0)))) > + > (define-public rust-stream-cipher-0.3 > (package > (name "rust-stream-cipher") > --=20 > 2.28.0 >=20 >=20 >=20 >=20 --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --n/aVsWSeQ4JHkrmm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl9q450ACgkQQarn3Mo9 g1GFMw/9GwIOLdmu+wsoNnHk5l8Csuk5hiLlDnm+VZLZojnkFZUk/QLYJe9coHnj Wm1RPPzpO8IZnd8Et426OajTFz5F017kdHWLOFWS8EIlJY20fRwuG88KTuwF/EWg fmoAtFwuCpuss6gOzpo/KYhSeKwO5/ElekF/dfaBTYH37mCJvxeoe0FD98daDsjp paKtIShlCvpELxX2nUjpz7/HDirc0jEx2ma/CTeEWMfV5SoZCwSabSYeKLT3dpAK tq5jQ7m35V7jTfCvi4xyTGXP0KOvOAfWaBnAk/9JgDoPNmHtl5QB+GVtJUh1xMLH 5Umq7FC0OaQt5WwJsN/a/mGinBD2cc7MJuQb0uurAHAL1RpN0vHrMjhy8dEvP5pb HLU9ObUCmICZlPyFwOn5A5G7dCTqaRcmnowt/7PyRxvkG67DxftxLOrprxCUUSxb UVXC+OA6yIpwu6BiGDR8jnmD4dahiI1tbtRayirq3k99MBe1wX83G8C5+KDS5S9w vovQTTteAucgLbh6eUsReG8ru5P+jYPzMX1iFUWirE8ZqcHQMS2BAgSJzicx4FoM nu9rUbpis1VDrPMudCzgY+L+Y/GODgnfXroFNXKJhbqiHqblLKrH+CpyoRSGIxsi ZTMtleln3rpMYfwgvJKUyCl6TtzssiD8y6eJo/yU/hYT4w0X50I= =n1Wm -----END PGP SIGNATURE----- --n/aVsWSeQ4JHkrmm--