From 2712c2bef22207df41b2418fd4aa64ec1ac8fced Mon Sep 17 00:00:00 2001 From: Jonathan Brielmaier Date: Sun, 13 Sep 2020 12:39:15 +0200 Subject: [PATCH] nongnu: Add rust-cbindgen-0.14.3. * nongnu/packages/mozilla.scm (rust-cbindgen-0.14.3): New variable. Upstream don't need this particular version for Icecat 78. Co-authored-by: Zhu Zihao Signed-off-by: Jonathan Brielmaier --- nongnu/packages/mozilla.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/nongnu/packages/mozilla.scm b/nongnu/packages/mozilla.scm index 473319c..cd3d5de 100644 --- a/nongnu/packages/mozilla.scm +++ b/nongnu/packages/mozilla.scm @@ -45,6 +45,7 @@ #:use-module (gnu packages autotools) #:use-module (gnu packages base) #:use-module (gnu packages compression) + #:use-module (gnu packages crates-io) #:use-module (gnu packages cups) #:use-module (gnu packages fontutils) #:use-module (gnu packages gl) @@ -73,6 +74,28 @@ #:use-module (gnu packages xdisorg) #:use-module (gnu packages xorg)) +(define rust-cbindgen-0.14.3 + (package + (inherit rust-cbindgen-0.14) + (name "rust-cbindgen") + (version "0.14.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "cbindgen" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0n88s072g09sfnvsbbkfw0mgga15isj09wc6ak63brzjbmq3mq76")))) + (arguments + ;; Cannot build with rust-1.39 + (cons* #:rust rust-1.43 + (substitute-keyword-arguments (package-arguments rust-cbindgen-0.14) + ((#:cargo-inputs cargo-inputs) + `(("rust-heck" ,rust-heck-0.3) + ,@cargo-inputs))))))) + (define %firefox-build-id "20200719000000") (define-public firefox