guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

05/07: gnu: novena-eeprom: Build with older i2c-tools.


From: guix-commits
Subject: 05/07: gnu: novena-eeprom: Build with older i2c-tools.
Date: Mon, 7 Feb 2022 07:20:41 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit 063b43b95e796d189b4d3ae4325137a981afc16e
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Feb 7 14:09:38 2022 +0200

    gnu: novena-eeprom: Build with older i2c-tools.
    
    * gnu/packages/admin.scm (novena-eeprom)[inputs]: Build with i2c-tools-3.
    * gnu/packages/linux.scm (i2c-tools-3): New variable.
---
 gnu/packages/admin.scm |  2 +-
 gnu/packages/linux.scm | 18 ++++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index f2ad66ea5b..daab720be5 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -4770,7 +4770,7 @@ disk utilization, priority, username, state, and exit 
code.")
                (install-file "novena-eeprom" out-bin)
                (install-file "novena-eeprom.8" out-share-man)))))))
     (inputs
-     (list i2c-tools))
+     (list i2c-tools-3))
     (synopsis "Novena EEPROM editor")
     (description "This package provides an editor for the Novena EEPROM.
 Novena boards contain a device-dependent descriptive EEPROM that defines
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 74c65f86bc..c405a34197 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -4507,6 +4507,24 @@ EEPROM decoding scripts, EEPROM programming tools, and a 
python module for
 SMBus access.")
     (license license:gpl2+)))
 
+(define-public i2c-tools-3
+  (package
+    (inherit i2c-tools)
+    (name "i2c-tools")
+    (version "3.1.2")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "http://jdelvare.nerim.net/mirror/i2c-tools/i2c-tools-";
+                    version ".tar.bz2"))
+              (sha256
+               (base32 
"0hd4c1w8lnwc3j95h3vpd125170l1d4myspyrlpamqx6wbr6jpnv"))))
+    (arguments
+     (substitute-keyword-arguments (package-arguments i2c-tools)
+       ((#:make-flags _)
+        #~(list (string-append "prefix=" #$output)
+                (string-append "CC=" #$(cc-for-target))))))))
+
 (define-public xsensors
   (package
     (name "xsensors")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]