From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH 18/86] gnu: Add rust-thread-id. Date: Tue, 3 Jan 2017 23:35:34 +0000 Message-ID: <20170103233642.3181-19-ng0@libertad.pw> References: <20170103233642.3181-1-ng0@libertad.pw> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOYde-0002q4-Nu for guix-devel@gnu.org; Tue, 03 Jan 2017 18:37:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOYdd-00012I-OR for guix-devel@gnu.org; Tue, 03 Jan 2017 18:37:06 -0500 Received: from aibo.runbox.com ([91.220.196.211]:33354) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cOYdd-000110-I1 for guix-devel@gnu.org; Tue, 03 Jan 2017 18:37:05 -0500 Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1cOYdc-0007zX-CQ for guix-devel@gnu.org; Wed, 04 Jan 2017 00:37:04 +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-thread-id): New variable. --- gnu/packages/rust.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 9893e5a72..b31b3ee4c 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -629,3 +629,29 @@ behave like bitflags.") "Unreachable provides an unreachable code optimization hint in stable rust, and some useful extension traits for @code{Option} and @code{Result}.") (license license:expat))) + +(define-public rust-thread-id + (package + (name "rust-thread-id") + (version "3.0.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "thread-id" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0jn13q459lz46l9r8qqy62ngzc9zbcw5p6k282g143f7b1swjds4")))) + (build-system cargo-build-system) + (inputs + `(;("rust-kernel32-sys" ,rust-kernel32-sys "src") ; WINAPI + ("rust-libc" ,rust-libc "src"))) + (home-page "https://github.com/ruuda/thread-id") + (synopsis "Get a unique thread ID") + (description + "For diagnostics and debugging it can often be useful to get an ID +that is different for every thread. Until Rust version 1.14, the +standard library did not expose a way to do that, which +made @code{thread-id} necessary.") + (license license:asl2.0))) -- 2.11.0