From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:36898) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1huEn3-0006lg-Id for guix-patches@gnu.org; Sun, 04 Aug 2019 07:35:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1huEn2-0003nX-6J for guix-patches@gnu.org; Sun, 04 Aug 2019 07:35:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51761) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1huEn2-0003nT-3Y for guix-patches@gnu.org; Sun, 04 Aug 2019 07:35:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1huEn1-0001iy-VE for guix-patches@gnu.org; Sun, 04 Aug 2019 07:35:03 -0400 Subject: [bug#36920] [PATCH 02/43] gnu: Add rust-autocfg. Resent-Message-ID: From: Efraim Flashner Date: Sun, 4 Aug 2019 14:33:34 +0300 Message-Id: In-Reply-To: <20190804112613.GC2421@E2140> References: <20190804112613.GC2421@E2140> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 36920@debbugs.gnu.org * gnu/packages/crates-io.scm (rust-autocfg): New variable. --- gnu/packages/crates-io.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 064ce06692..d4160b6a7f 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2019 Ivan Petkov +;;; Copyright © 2019 Efraim Flashner ;;; ;;; This file is part of GNU Guix. ;;; @@ -26,6 +27,28 @@ ;;; Please: Try to add new module packages in alphabetic order. ;;; +(define-public rust-autocfg + (package + (name "rust-autocfg") + (version "0.1.5") + (source + (origin + (method url-fetch) + (uri (crate-uri "autocfg" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0asl6fnc35yk5l2rxwhp25v128jgm45dp754h9z8x51b6n90w4r2")))) + (build-system cargo-build-system) + (home-page "https://github.com/cuviper/autocfg") + (synopsis "Automatic cfg for Rust compiler features") + (description "Rust library for build scripts to automatically configure +code based on compiler support. Code snippets are dynamically tested to see +if the @code{rustc} will accept them, rather than hard-coding specific version +support.") + (license (list license:asl2.0 + license:expat)))) + (define-public rust-proc-macro2 (package (name "rust-proc-macro2") -- 2.22.0