From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH 09/86] gnu: Add rust-nix-test. Date: Tue, 3 Jan 2017 23:35:25 +0000 Message-ID: <20170103233642.3181-10-ng0@libertad.pw> References: <20170103233642.3181-1-ng0@libertad.pw> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52519) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOYdN-0002ao-TN for guix-devel@gnu.org; Tue, 03 Jan 2017 18:36:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOYdK-0000k2-3y for guix-devel@gnu.org; Tue, 03 Jan 2017 18:36:49 -0500 Received: from aibo.runbox.com ([91.220.196.211]:33277) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cOYdJ-0000jQ-T6 for guix-devel@gnu.org; Tue, 03 Jan 2017 18:36:46 -0500 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1cOYdI-0007W5-Nq for guix-devel@gnu.org; Wed, 04 Jan 2017 00:36:44 +0100 In-Reply-To: <20170103233642.3181-1-ng0@libertad.pw> 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 * gnu/packages/rust.scm (rust-nix-test): New variable. --- gnu/packages/rust.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 1e6bd8672..674570c7d 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -426,3 +426,30 @@ featuring zero allocations, composability, and iterator-like interfaces.") (description "Library for random number generators and other randomness functionality.") (license (list license:expat license:asl2.0)))) + +(define-public rust-nix-test + (package + (name "rust-nix-test") + (version "0.0.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "nix-test" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1g7i9p3lizipyg99swdmkg0jyxm0i3wm2jkf7hrbrkk3k3rbhp9y")))) + (build-system cargo-build-system) + (home-page "https://github.com/carllerche/nix-rust") + (synopsis "Bindings to *nix APIs") + (description + "Nix-test provides the testing helpers for nix. Nix seeks to +provide bindings to various *nix platform APIs. +The goal is to not provide a 100% unified interface, but to +unify what can be while still providing platform specific APIs. + +For many system APIs, Nix provides a safe alternative to the unsafe API +exposed by the libc crate. This is done by wrapping the libc +functionality with types/abstractions that enforce legal/safe usage.") + (license license:expat))) -- 2.11.0