From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0@n0.is Subject: Re: rust build system, building libc crate Date: Sat, 03 Feb 2018 20:49:57 +0000 Message-ID: <87a7wpre6i.fsf@abyayala.i-did-not-set--mail-host-address--so-tickle-me> References: <87mv0psszk.fsf@abyayala.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ei4l6-0002TQ-NV for guix-devel@gnu.org; Sat, 03 Feb 2018 15:50:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ei4l3-0007FD-K2 for guix-devel@gnu.org; Sat, 03 Feb 2018 15:50:00 -0500 Received: from aibo.runbox.com ([91.220.196.211]:42578) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ei4l3-0007Dy-Bu for guix-devel@gnu.org; Sat, 03 Feb 2018 15:49:57 -0500 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1ei4l1-0002C0-Mw for guix-devel@gnu.org; Sat, 03 Feb 2018 21:49:55 +0100 Received: from dslb-178-006-001-011.178.006.pools.vodafone-ip.de ([178.6.1.11] helo=localhost) by mailfront12.runbox.com with esmtpsa (uid:892961 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1ei4l0-0001TR-M1 for guix-devel@gnu.org; Sat, 03 Feb 2018 21:49:54 +0100 In-Reply-To: <87mv0psszk.fsf@abyayala.i-did-not-set--mail-host-address--so-tickle-me> (ng0@n0.is's message of "Sat, 03 Feb 2018 20:44:47 +0000") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --=-=-= Content-Type: text/plain Appended the wrong patch, here's the right one. --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: inline; filename=0001-gnu-Add-rust-libc.patch Content-Transfer-Encoding: 8bit >From 7ea2e70a81a57305cf24844ba3b9a4501051fa40 Mon Sep 17 00:00:00 2001 From: ng0 Date: Thu, 29 Dec 2016 20:47:57 +0000 Subject: [PATCH] gnu: Add rust-libc. * gnu/packages/rust.scm (rust-libc): New variable. --- gnu/packages/rust.scm | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 1ba857d36..730af0ce4 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -1,7 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2016 David Craven ;;; Copyright © 2016 Eric Le Bihan -;;; Copyright © 2016 ng0 +;;; Copyright © 2016, 2018 ng0 ;;; Copyright © 2017 Ben Woodcroft ;;; Copyright © 2017 Nikolai Merinov ;;; Copyright © 2017 Efraim Flashner @@ -45,6 +45,7 @@ #:use-module (guix build-system cargo) #:use-module (guix build-system gnu) #:use-module (guix build-system trivial) + #:use-module (guix build-system cargo) #:use-module (guix download) #:use-module (guix base16) ;for generated "cargo" native-inputs #:use-module ((guix licenses) #:prefix license:) @@ -1468,3 +1469,23 @@ dependencies and ensures a reproducible build.") ;; Cargo is dual licensed Apache and MIT. Also contains ;; code from openssl which is GPL2 with linking exception. (license (list license:asl2.0 license:expat license:gpl2)))) + +(define-public rust-libc + (package + (name "rust-libc") + (version "0.2.36") + (source + (origin + (method url-fetch) + (uri (crate-uri "libc" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "08diwhvbj7dz75jnpyr2f9rg5h1djhdngalz883s9nlff3b9fp8y")))) + (build-system cargo-build-system) + (home-page "https://github.com/rust-lang/libc") + (synopsis "Raw bindings to platform APIs for Rust") + (description + "Libc provides a library for types and bindings to native +C functions often found in libc or other common platform libraries.") + (license (list license:expat license:asl2.0)))) -- 2.16.1 --=-=-= Content-Type: text/plain -- ng0 :: https://ea.n0.is A88C8ADD129828D7EAC02E52E22F9BBFEE348588 :: https://ea.n0.is/keys/ --=-=-=--