From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH 05/86] gnu: Add rust-qml. Date: Tue, 3 Jan 2017 23:35:21 +0000 Message-ID: <20170103233642.3181-6-ng0@libertad.pw> References: <20170103233642.3181-1-ng0@libertad.pw> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOYcx-0002Db-UF for guix-devel@gnu.org; Tue, 03 Jan 2017 18:36:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOYcx-0000WH-0u for guix-devel@gnu.org; Tue, 03 Jan 2017 18:36:23 -0500 Received: from aibo.runbox.com ([91.220.196.211]:33203) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cOYcw-0000VV-Md for guix-devel@gnu.org; Tue, 03 Jan 2017 18:36:22 -0500 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1cOYcv-0007S1-H3 for guix-devel@gnu.org; Wed, 04 Jan 2017 00:36:21 +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-qml): New variable. --- gnu/packages/rust.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 1d96c3af2..68c22a279 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -28,6 +28,7 @@ #:use-module (gnu packages jemalloc) #:use-module (gnu packages llvm) #:use-module (gnu packages python) + #:use-module (gnu packages qt) #:use-module (gnu packages version-control) #:use-module (guix build-system gnu) #:use-module (guix build-system trivial) @@ -330,3 +331,32 @@ available.") "Lazy-static provides a macro for declaring lazily evaluated statics in Rust.") (license license:expat))) + +(define-public rust-qml + (package + (name "rust-qml") + (version "0.0.9") + (source + (origin + (method url-fetch) + (uri (crate-uri "qml" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1inbzzd7rg5fvypl927hmy0qdc899mbjp7x5b0wmk6869ril2nsy")))) + (build-system cargo-build-system) + (inputs + `(("rust-lazy-static" ,rust-lazy-static "src") + ("rust-libc" ,rust-libc "src"))) + (propagated-inputs + ;; Rust has no concept for outside packages, but DOtherSide is + ;; a dependency according to the github page. + `(("dotherside" ,dotherside))) + (home-page "https://github.com/White-Oak/qml-rust") + (synopsis "QML (Qt Quick) bindings for Rust language") + (description + "QML-rust provides bindings for Qt Quick. The bindings are based +on @code{DOtherSide} C bindings for QML Library. It is mostly +feature-compliant with other bindings based on the library.") + (license license:expat))) -- 2.11.0