From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:55950) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMZQd-000777-Qs for guix-patches@gnu.org; Mon, 21 Oct 2019 11:17:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMZQc-0003xO-Mf for guix-patches@gnu.org; Mon, 21 Oct 2019 11:17:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48822) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iMZQc-0003xJ-Jt for guix-patches@gnu.org; Mon, 21 Oct 2019 11:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iMZQc-0002RY-9v for guix-patches@gnu.org; Mon, 21 Oct 2019 11:17:02 -0400 Subject: [bug#37853] [PATCH] gnu: Add ddcci-driver-linux. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:55923) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMZQC-00076F-Us for guix-patches@gnu.org; Mon, 21 Oct 2019 11:16:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMZQB-0003tR-B5 for guix-patches@gnu.org; Mon, 21 Oct 2019 11:16:36 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:38369) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iMZQB-0003tG-1r for guix-patches@gnu.org; Mon, 21 Oct 2019 11:16:35 -0400 Received: from localhost (luy13-1-78-237-113-178.fbx.proxad.net [78.237.113.178]) (Authenticated sender: brice@waegenei.re) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id E4568240010 for ; Mon, 21 Oct 2019 15:16:30 +0000 (UTC) From: Brice Waegeneire Date: Mon, 21 Oct 2019 17:16:28 +0200 Message-Id: <20191021151628.28632-1-brice@waegenei.re> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: 37853@debbugs.gnu.org * gnu/packages/linux.scm (ddcci-driver-linux): Add variable. --- gnu/packages/linux.scm | 59 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 989d55f8aa..4a98c9e60e 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -968,6 +968,65 @@ and should be used with caution, especially on untested models.") between the CDemu userspace daemon and linux kernel.") (license license:gpl2+))) + +(define-public ddcci-driver-linux + (package + (name "ddcci-driver-linux") + (version "0.3.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/ddcci-driver-linux/ddcci-driver-linux.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0vkkja3ykjil783zjpwp0vz7jy2fp9ccazzi3afd4fjk8gldin7f")))) + (build-system linux-module-build-system) + (arguments + `(#:tests? #f ; no tests + #:phases + (modify-phases %standard-phases + (replace 'build + (lambda* (#:key inputs #:allow-other-keys) + (for-each (lambda (module) + (invoke "make" "-C" + (string-append (assoc-ref inputs "linux-module-builder") + "/lib/modules/build") + (string-append "M=" (getcwd) "/" module))) + (list "ddcci" "ddcci-backlight")) + #t)) + (replace 'install + (lambda* (#:key inputs native-inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (moddir (string-append out "/lib/modules")) + (kmod (assoc-ref (or native-inputs inputs) "kmod"))) + ;; Install kernel modules + (mkdir-p moddir) + (for-each (lambda (module) + (invoke "make" "-C" + (string-append + (assoc-ref inputs "linux-module-builder") + "/lib/modules/build") + (string-append "M=" (getcwd) "/" module) + (string-append "DEPMOD=" kmod "/bin/depmod") + (string-append "MODULE_DIR=" moddir) + (string-append "INSTALL_PATH=" out) + (string-append "INSTALL_MOD_PATH=" out) + "INSTALL_MOD_STRIP=1" + "modules_install")) + (list "ddcci" "ddcci-backlight"))) + #t))))) + (home-page "https://gitlab.com/ddcci-driver-linux/ddcci-driver-linux") + (synopsis "A pair of Linux kernel drivers for DDC/CI monitors") + (description "Two Linux kernel drivers, ddcci and ddcci-backlight, that +allow the control of DDC/CI monitors through the sysfs interface. ddcci create +a character device for each DDC/CI monitors in @file{/dev/bus/ddcci/[I²C bus number]}. +ddcci-backlight allow the control of the backlight level or luminance property when supported +under @file{/sys/class/backlight/}.") + (license license:gpl2+))) + ;;; ;;; Pluggable authentication modules (PAM). -- 2.19.2