From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 6AuqGws3Zl9wcQAA0tVLHw (envelope-from ) for ; Sat, 19 Sep 2020 16:51:23 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 4OSlFws3Zl94AwAA1q6Kng (envelope-from ) for ; Sat, 19 Sep 2020 16:51:23 +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 F180E940291 for ; Sat, 19 Sep 2020 16:51:22 +0000 (UTC) Received: from localhost ([::1]:41324 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJg53-0003nq-J7 for larch@yhetil.org; Sat, 19 Sep 2020 12:51:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJfS2-00027m-Ma for guix-patches@gnu.org; Sat, 19 Sep 2020 12:11:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36328) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kJfS2-0000OO-CT for guix-patches@gnu.org; Sat, 19 Sep 2020 12:11:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kJfS2-00064D-7h for guix-patches@gnu.org; Sat, 19 Sep 2020 12:11:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43514] [PATCH 1/3] gnu: Add rust-stfu8. Resent-From: Gabriel Arazas Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 19 Sep 2020 16:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43514 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43514@debbugs.gnu.org Cc: Gabriel Arazas X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160053185623308 (code B ref -1); Sat, 19 Sep 2020 16:11:02 +0000 Received: (at submit) by debbugs.gnu.org; 19 Sep 2020 16:10:56 +0000 Received: from localhost ([127.0.0.1]:47874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJfRw-00063s-4c for submit@debbugs.gnu.org; Sat, 19 Sep 2020 12:10:56 -0400 Received: from lists.gnu.org ([209.51.188.17]:52600) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJfRt-00063j-BN for submit@debbugs.gnu.org; Sat, 19 Sep 2020 12:10:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53638) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJfRt-00022m-57 for guix-patches@gnu.org; Sat, 19 Sep 2020 12:10:53 -0400 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]:33934) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kJfRp-0000Hf-2G for guix-patches@gnu.org; Sat, 19 Sep 2020 12:10:52 -0400 Received: by mail-pf1-x431.google.com with SMTP id k13so4966290pfg.1 for ; Sat, 19 Sep 2020 09:10:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0ZxJmUfbqq1KFpPmnhwPMTT8nhqzfISDcfWVpCKiexk=; b=Kb+9NLZjEjXMEkuzPmr81k6fDnyerEy5HGkAnQSQpTn5aWdTjcJQD0731p7oq3sWO0 +cHRrbnz26oKxhtIpE3smbOGSmDyyK+VKuP3BeqKUPWyDasxWEeNO7yZcIO3JTONXPEu 6LPiciYa0EJEcVGuNPUn8s+vISmUF9qTuvUPK03oYzQdeV3gJimOVsGYUmJcQxywxiys 6j8Qi0AtG/yK+j0kQPDLBp8VTCX6SAKmFwiUzqsiZ2Xq0MebjJuii2cdZz4i4QbKJvTD 4R9PSRtLGe18J37ZHzVRx8oHq4gTNyDwxgb9oeTZeAEnWbhEFwM8zn4/0ELu2B9BF7J4 HdsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0ZxJmUfbqq1KFpPmnhwPMTT8nhqzfISDcfWVpCKiexk=; b=EzPVsaTSLrbz360wu57fGFIfLXvHpCX2bXvpH12uMSAXElVIadFfs2LCsRFZ+Nm0qr gAXzxaXC4XvBpxvwA08eu86mRNs8b0M1c3u4mVUNnnNOSsPTh8GaiMyHRcLeyL+6eLy6 7evAvvssj9HgQxijoxnmjAP1YqKzpRXhHk+Y1dq/yCR379UPzK3GRk40zieiek+Ct1HR 94G9v5fpbTuUI4RTpWWLDuHpSG4NGGr/08LpQv1NVQSffRtNQrd/p5v3F0i01mb6MTEi JGsA9dEeojOtbfsqwbAFcaiK9j1T37hg3xD0WxtLH6BG0X5E5tceqqXFkqrBVpNXcBli n/xQ== X-Gm-Message-State: AOAM532IfcFj/nF0jW/YYLmWxVaUjsrx1DL5AmJqkl//lqeAW1dLnuOY pDVcjCIxoNndtLK/8vjK2KYe2QygcLU= X-Google-Smtp-Source: ABdhPJxM8ec/iCMgGsEt64/hgwJE5V51ihhUpq77OhBUS4oWwmDeUSd+G56/XuH1meKO5oTB9nVmhw== X-Received: by 2002:a62:1dc1:0:b029:13e:d13d:a051 with SMTP id d184-20020a621dc10000b029013ed13da051mr35869816pfd.23.1600531845549; Sat, 19 Sep 2020 09:10:45 -0700 (PDT) Received: from localhost.localdomain ([112.198.160.169]) by smtp.gmail.com with ESMTPSA id gb19sm6075863pjb.38.2020.09.19.09.10.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Sep 2020 09:10:44 -0700 (PDT) From: Gabriel Arazas Date: Sun, 20 Sep 2020 00:04:54 +0800 Message-Id: <20200919160452.1281-1-foo.dogsquared@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::431; envelope-from=foo.dogsquared@gmail.com; helo=mail-pf1-x431.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.3 (--) 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=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=Kb+9NLZj; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 4.09 X-TUID: c/zzW9pjW2ur * 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. 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=4~ 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(+) 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)))))) +(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 bytes and vice versa!") "This package provides a set of bits.") (license (list license:asl2.0 license:expat)))) +(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 bytes and vice versa!") "This package provides a vector of bits.") (license (list license:expat license:asl2.0)))) +(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)))) +(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)))))) +(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)))) +(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 visualize and +edit data that is mostly UTF-8. It will encode all non-UTF8-compliant bytes as +longform text (e.g., ESC becomes @code{r\x1B}) and tries to encode ill-formed +UTF-8.") + (license (list license:expat license:asl2.0)))) + (define-public rust-stream-cipher-0.3 (package (name "rust-stream-cipher") -- 2.28.0