From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:45337) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iw44d-0005qk-Sk for guix-patches@gnu.org; Mon, 27 Jan 2020 08:05:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iw44c-0008WT-AY for guix-patches@gnu.org; Mon, 27 Jan 2020 08:05:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51917) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iw44c-0008WO-7k for guix-patches@gnu.org; Mon, 27 Jan 2020 08:05:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iw44c-0008Vi-2D for guix-patches@gnu.org; Mon, 27 Jan 2020 08:05:02 -0500 Subject: [bug#39306] [PATCH] gnu: Add xsettingsd. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:45226) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iw44L-0005qC-PB for guix-patches@gnu.org; Mon, 27 Jan 2020 08:04:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iw44K-0008L1-Fr for guix-patches@gnu.org; Mon, 27 Jan 2020 08:04:45 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:37441) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iw44K-0008KJ-3m for guix-patches@gnu.org; Mon, 27 Jan 2020 08:04:44 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id C55BB497 for ; Mon, 27 Jan 2020 08:04:42 -0500 (EST) Received: from zerocool (c-67-171-51-221.hsd1.wa.comcast.net [67.171.51.221]) by mail.messagingengine.com (Postfix) with ESMTPA id D23BE3280059 for ; Mon, 27 Jan 2020 08:04:41 -0500 (EST) From: David Wilson Date: Mon, 27 Jan 2020 05:04:40 -0800 Message-ID: <87r1zlvymv.fsf@daviwil.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 39306@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable * gnu/packages/wm.scm (xsettingsd): New variable. =2D-- gnu/packages/wm.scm | 63 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm index 52d7042806..4fb18e9f67 100644 =2D-- a/gnu/packages/wm.scm +++ b/gnu/packages/wm.scm @@ -31,6 +31,7 @@ ;;; Copyright =C2=A9 2019 Brett Gilio ;;; Copyright =C2=A9 2019 Noodles! ;;; Copyright =C2=A9 2019 Alexandru-Sergiu Marton +;;; Copyright =C2=A9 2020 David Wilson ;;; ;;; This file is part of GNU Guix. ;;; @@ -59,6 +60,7 @@ #:use-module (guix build-system meson) #:use-module (guix build-system perl) #:use-module (guix build-system python) + #:use-module (guix build-system scons) #:use-module (guix utils) #:use-module (gnu packages) #:use-module (gnu packages autotools) @@ -94,6 +96,7 @@ #:use-module (gnu packages pretty-print) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) + #:use-module (gnu packages python-xyz) #:use-module (gnu packages serialization) #:use-module (gnu packages suckless) #:use-module (gnu packages texinfo) @@ -1670,3 +1673,63 @@ bar entirely based on XCB. Provides full UTF-8 supp= ort, basic formatting, RandR and Xinerama support and EWMH compliance without wasting your precious memory.") (license license:x11)))) + +(define-public xsettingsd + (package + (name "xsettingsd") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/derat/xsettingsd.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "05m4jlw0mgwp24cvyklncpziq1prr2lg0cq9c055sh4n9d93d07v")))) + (build-system scons-build-system) + (inputs + `(("libx11" ,libx11))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (arguments + `(#:scons ,scons-python2 + #:scons-flags + (list "CC=3Dgcc" + (string-append "PREFIX=3D" %output)) + #:tests? #f ;; Tests require Google's gtest framework + #:phases + (modify-phases %standard-phases + (add-before 'build 'patch-sconstruct + (lambda _ + ;; scons doesn't pick up environment variables automatically + ;; so it needs some help to find path variables. + (substitute* "SConstruct" + (("env =3D Environment\\(") + "env =3D Environment( + ENV =3D { + 'PATH': os.environ['PATH'], + 'CPATH': os.environ['CPATH'], + 'LIBRARY_PATH': os.environ['LIBRARY_PATH'], + 'PKG_CONFIG_PATH': os.environ['PKG_CONFIG_PATH'] + },")) + #t)) + ;; The install task uses gtest to install the binaries. + ;; Since we don't have gtest, install binaries manually. + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (bin (string-append out "/bin"))) + (mkdir-p bin) + (install-file "xsettingsd" bin) + (install-file "dump_xsettings" bin) + #t)))))) + (home-page "https://github.com/derat/xsettingsd") + (synopsis "Minimal Xorg settings daemon") + (description "xsettingsd is a lightweight daemon that provides setting= s to +Xorg applications via the XSETTINGS specification. It is used for defining +font and theme settings when a complete desktop environment (GNOME, KDE) is +not running. With a simple .xsettingsd configuration file one can avoid +configuring visual settings in different UI toolkits separately.") + (license license:bsd-3))) =2D- 2.24.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEU8QebkGq/lUzWspeRGou1NlAvxQFAl4u3+gACgkQRGou1NlA vxSKxg//S9IZY8nVNQ/ThxKeddC3NlB8e2WkRzv7B27tW1G+IbVhABR49GMXZ+nZ /bcc87X769daoBGbAdpOJxzXe1z9IjLMs/NzQRWAJp54R+Ba6G1qWoV55DlslQpI jHmyyVEXY6UYzhNehDKyY3783FOmQQAvFZHxMhlOVH0zW0zXlJBBAMC30OriBvqM IylVNIB1Oa36NZso6uHN05NAu8xOjcKPy/CBlpDkjzLX6q1oG80pdLA568SWb+9h 47JXAU7UoZQGD/Dhiey+IQeKaiNh/heyNHsKMWRGuYP349y+ALHX3fjXxh1Fkink 55NGwvNnsC6j5IVwg/MqHpW8qIMRGjVYFMGvUA6+rxkL5wNt6bn3V6KPrG7onXWN QBWIEja0qpFg4OrEuWbqiFDANLxbzCXvmirKGCFW+0mxAedu8j8mUEWk/OjHT8ik 7lXGOPE+qM4HZfoCwhFUBF6t10FMrxjZtAhbv8G8/jkMjw9bO37LrRZIeQN1Tc9c rO9IrCQCOYmp2SBZq/F6fooHraapmjH12jOsJxaMvlAGZVoCbXwfyAerZ1ZbXHHr LyOsUxQeVWzkZr7gH6PgDEvkvHI2LuP8bxnB9mZy0vfJoET51pl38+DVdYFysiLP 4zGizfqCvWFijKpY2Try/7xTkxtJWarkMrcjQPx39/oybf5M8+w= =WmEV -----END PGP SIGNATURE----- --=-=-=--