[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: rust build system, building libc crate
From: |
ng0 |
Subject: |
Re: rust build system, building libc crate |
Date: |
Sat, 03 Feb 2018 20:49:57 +0000 |
Appended the wrong patch, here's the right one.
>From 7ea2e70a81a57305cf24844ba3b9a4501051fa40 Mon Sep 17 00:00:00 2001
From: ng0 <address@hidden>
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 <address@hidden>
;;; Copyright © 2016 Eric Le Bihan <address@hidden>
-;;; Copyright © 2016 ng0 <address@hidden>
+;;; Copyright © 2016, 2018 ng0 <address@hidden>
;;; Copyright © 2017 Ben Woodcroft <address@hidden>
;;; Copyright © 2017 Nikolai Merinov <address@hidden>
;;; Copyright © 2017 Efraim Flashner <address@hidden>
@@ -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
--
ng0 :: https://ea.n0.is
A88C8ADD129828D7EAC02E52E22F9BBFEE348588 :: https://ea.n0.is/keys/