From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH 70/86] gnu: Add rust-nix. Date: Tue, 3 Jan 2017 23:36:26 +0000 Message-ID: <20170103233642.3181-71-ng0@libertad.pw> References: <20170103233642.3181-1-ng0@libertad.pw> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOYfa-0004gd-2L for guix-devel@gnu.org; Tue, 03 Jan 2017 18:39:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOYfW-0002NB-Ok for guix-devel@gnu.org; Tue, 03 Jan 2017 18:39:06 -0500 Received: from aibo.runbox.com ([91.220.196.211]:33530) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cOYfW-0002Lr-HL for guix-devel@gnu.org; Tue, 03 Jan 2017 18:39:02 -0500 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1cOYfV-00033r-7r for guix-devel@gnu.org; Wed, 04 Jan 2017 00:39:01 +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): New variable. --- gnu/packages/rust.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index b9e93c2d4..825893a2b 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -1910,3 +1910,35 @@ the version of a installed rustc compiler.") (description "Tempfile allows you to securely create temporary files.") (license (list license:expat license:asl2.0)))) + +(define-public rust-nix + (package + (name "rust-nix") + (version "0.7.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "nix" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0ywf2zyxlfk9zkw50lydnn93rymaxda7925qs05c2hdnm1gmrnd0")))) + (build-system cargo-build-system) + (native-inputs + `(("rust-nix-test" ,rust-nix-test "src") + ("rust-rand" ,rust-rand "src") + ("rust-rustc-version" ,rust-rustc-version "src") + ("rust-semver" ,rust-semver "src") + ("rust-tempdir" ,rust-tempdir "src") + ("rust-tempfile" ,rust-tempfile "src"))) + (inputs + `(("rust-bitflags" ,rust-bitflags "src") + ("rust-cfg-if" ,rust-cfg-if "src") + ("rust-libc" ,rust-libc "src") + ("rust-void" ,rust-void "src"))) + (home-page "https://github.com/nix-rust/nix") + (synopsis "Rust friendly bindings to *nix APIs") + (description + "Nix provides Rust friendly bindings to *nix APIs.") + (license license:expat))) -- 2.11.0