From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:35742) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNwmH-0006kO-4n for guix-patches@gnu.org; Fri, 25 Oct 2019 06:25:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNwmF-0003r0-Fw for guix-patches@gnu.org; Fri, 25 Oct 2019 06:25:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56742) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iNwmE-0003qb-FM for guix-patches@gnu.org; Fri, 25 Oct 2019 06:25:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iNwmE-0004WW-Ac for guix-patches@gnu.org; Fri, 25 Oct 2019 06:25:02 -0400 Subject: [bug#37853] [PATCH v3] gnu: Add ddcci-driver-linux. Resent-Message-ID: From: Brice Waegeneire Date: Fri, 25 Oct 2019 12:24:03 +0200 Message-Id: <20191025102403.4355-2-brice@waegenei.re> In-Reply-To: <20191025102403.4355-1-brice@waegenei.re> References: <20191025102403.4355-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 | 46 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 989d55f8aa..d061f866d9 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -968,6 +968,52 @@ 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 args + (for-each + (lambda (module) + (with-directory-excursion module + (apply (assoc-ref %standard-phases 'build) args))) + '("ddcci" "ddcci-backlight")) + #t)) + (replace 'install + (lambda args + (for-each + (lambda (module) + (with-directory-excursion module + (apply (assoc-ref %standard-phases 'install) args))) + '("ddcci" "ddcci-backlight")) + #t))))) + (home-page "https://gitlab.com/ddcci-driver-linux/ddcci-driver-linux") + (synopsis "Pair of Linux kernel drivers for DDC/CI monitors") + (description "This package provide two Linux kernel drivers, ddcci and +ddcci-backlight, that allow the control of DDC/CI monitors through the sysfs +interface. The ddcci module create a character device for each DDC/CI monitors +in @file{/dev/bus/ddcci/[I²C busnumber]}. While the ddcci-backlight module +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