Compare commits

..

No commits in common. "55e4d889a6121b302902feba1a7765b4d356ee2c" and "5172fac369025bc98cbfb925b728b2cae20ac2c5" have entirely different histories.

2 changed files with 4 additions and 30 deletions

View File

@ -29,7 +29,6 @@
(build-system cargo-build-system) (build-system cargo-build-system)
(arguments (arguments
(list #:install-source? #f (list #:install-source? #f
#:tests? #f ;Requires running display server.
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'fix-paths (add-after 'unpack 'fix-paths
@ -37,7 +36,10 @@
(substitute* "src/lib.rs" (substitute* "src/lib.rs"
(("\"Xwayland\"") (("\"Xwayland\"")
(format #f "\"~a\"" (format #f "\"~a\""
(search-input-file inputs "bin/Xwayland"))))))))) (search-input-file inputs "bin/Xwayland"))))))
(add-before 'check 'prepare-for-tests
(lambda _
(setenv "XDG_RUNTIME_DIR" "/tmp"))))))
(native-inputs (list pkg-config)) (native-inputs (list pkg-config))
(inputs (inputs
(cons* clang (cons* clang

View File

@ -1,28 +0,0 @@
;;; SPDX-FileCopyrightText: 2021 Andrew Tropin <andrew@trop.in>
;;;
;;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (rosenthal services keyboard)
#:use-module (gnu system keyboard)
#:use-module (gnu home services)
#:export (home-keyboard-service-type))
(define (set-xkb-variables layout)
(if layout
`(("XKB_DEFAULT_LAYOUT" . ,(keyboard-layout-name layout))
("XKB_DEFAULT_VARIANT" . ,(keyboard-layout-variant layout))
("XKB_DEFAULT_OPTIONS" . ,(string-join
(keyboard-layout-options layout) ","))
("XKB_DEFAULT_MODEL" . ,(keyboard-layout-model layout)))
'()))
(define home-keyboard-service-type
(service-type (name 'home-keyboard)
(extensions
(list (service-extension
home-environment-variables-service-type
set-xkb-variables)))
(default-value #f)
(description "Set layouts by configuring XKB_*
environment variables. Service accepts an instance of
@code{keyboard-layout} from @code{(gnu system keyboard)}.")))