gnu: Add rust-gio-sys-0.17.
* gnu/packages/crates-gtk.scm (rust-gio-sys-0.17): New variable. (rust-gio-sys-0.15): Inherit from rust-gio-sys-0.17.
This commit is contained in:
parent
e6bb04a7c6
commit
517f892246
1 changed files with 48 additions and 13 deletions
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2020, 2021 Efraim Flashner <efraim@flashner.co.il>
|
;;; Copyright © 2020, 2021, 2023 Efraim Flashner <efraim@flashner.co.il>
|
||||||
;;; Copyright © 2020, 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr>
|
;;; Copyright © 2020, 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr>
|
||||||
;;; Copyright © 2022 Petr Hodina <phodina@protonmail.com>
|
;;; Copyright © 2022 Petr Hodina <phodina@protonmail.com>
|
||||||
;;; Copyright © 2022 Aleksandr Vityazev <avityazev@posteo.org>
|
;;; Copyright © 2022 Aleksandr Vityazev <avityazev@posteo.org>
|
||||||
|
@ -902,24 +902,25 @@
|
||||||
("rust-serial-test" ,rust-serial-test-0.1)
|
("rust-serial-test" ,rust-serial-test-0.1)
|
||||||
("rust-serial-test-derive" ,rust-serial-test-derive-0.1))))))
|
("rust-serial-test-derive" ,rust-serial-test-derive-0.1))))))
|
||||||
|
|
||||||
(define-public rust-gio-sys-0.15
|
(define-public rust-gio-sys-0.17
|
||||||
(package
|
(package
|
||||||
(name "rust-gio-sys")
|
(name "rust-gio-sys")
|
||||||
(version "0.15.10")
|
(version "0.17.10")
|
||||||
(source
|
(source (origin
|
||||||
(origin
|
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (crate-uri "gio-sys" version))
|
(uri (crate-uri "gio-sys" version))
|
||||||
(file-name (string-append name "-" version ".tar.gz"))
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "13fgmc2xdzg9qk9l3nlp1bilwn6466mrqbiq4fhc9qkia93pl59j"))))
|
(base32
|
||||||
|
"1hr84vgpz1hbs9q7wgvpnwhbxwh9kim0z5aqv6v6ki0j1b1qgkqc"))))
|
||||||
(build-system cargo-build-system)
|
(build-system cargo-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(;; FIXME: some GLib macros are not found
|
`(;; XXX: Tests are sensitive to the version of glib, even though
|
||||||
|
;; the library supports a wide range. Skip for now.
|
||||||
#:tests? #f
|
#:tests? #f
|
||||||
#:cargo-inputs
|
#:cargo-inputs
|
||||||
(("rust-glib-sys" ,rust-glib-sys-0.15)
|
(("rust-glib-sys" ,rust-glib-sys-0.17)
|
||||||
("rust-gobject-sys" ,rust-gobject-sys-0.15)
|
("rust-gobject-sys" ,rust-gobject-sys-0.17)
|
||||||
("rust-libc" ,rust-libc-0.2)
|
("rust-libc" ,rust-libc-0.2)
|
||||||
("rust-system-deps" ,rust-system-deps-6)
|
("rust-system-deps" ,rust-system-deps-6)
|
||||||
("rust-winapi" ,rust-winapi-0.3))
|
("rust-winapi" ,rust-winapi-0.3))
|
||||||
|
@ -944,6 +945,40 @@
|
||||||
(description "This package provides FFI bindings to libgio-2.0.")
|
(description "This package provides FFI bindings to libgio-2.0.")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
|
(define-public rust-gio-sys-0.15
|
||||||
|
(package
|
||||||
|
(inherit rust-gio-sys-0.17)
|
||||||
|
(name "rust-gio-sys")
|
||||||
|
(version "0.15.10")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (crate-uri "gio-sys" version))
|
||||||
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
|
(sha256
|
||||||
|
(base32 "13fgmc2xdzg9qk9l3nlp1bilwn6466mrqbiq4fhc9qkia93pl59j"))))
|
||||||
|
(arguments
|
||||||
|
`(;; FIXME: some GLib macros are not found
|
||||||
|
#:tests? #f
|
||||||
|
#:cargo-inputs
|
||||||
|
(("rust-glib-sys" ,rust-glib-sys-0.15)
|
||||||
|
("rust-gobject-sys" ,rust-gobject-sys-0.15)
|
||||||
|
("rust-libc" ,rust-libc-0.2)
|
||||||
|
("rust-system-deps" ,rust-system-deps-6)
|
||||||
|
("rust-winapi" ,rust-winapi-0.3))
|
||||||
|
#:cargo-development-inputs
|
||||||
|
(("rust-shell-words" ,rust-shell-words-1)
|
||||||
|
("rust-tempfile" ,rust-tempfile-3))
|
||||||
|
#:phases (modify-phases %standard-phases
|
||||||
|
(add-before 'check 'extend-include-path
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(let ((gio-headers (search-input-directory
|
||||||
|
inputs "include/gio-unix-2.0")))
|
||||||
|
;; Tests rely on these headers.
|
||||||
|
(setenv "C_INCLUDE_PATH"
|
||||||
|
(string-append gio-headers ":"
|
||||||
|
(getenv "C_INCLUDE_PATH")))))))))))
|
||||||
|
|
||||||
(define-public rust-gio-sys-0.14
|
(define-public rust-gio-sys-0.14
|
||||||
(package
|
(package
|
||||||
(inherit rust-gio-sys-0.15)
|
(inherit rust-gio-sys-0.15)
|
||||||
|
|
Reference in a new issue