[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/17: gnu: Add acpi-call-linux-module.
From: |
guix-commits |
Subject: |
03/17: gnu: Add acpi-call-linux-module. |
Date: |
Sun, 19 May 2019 22:18:29 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit 7bf28446a51efe1e97c02590e98fe7f59559b4da
Author: Tobias Geerinckx-Rice <address@hidden>
Date: Fri May 10 22:02:26 2019 +0200
gnu: Add acpi-call-linux-module.
* gnu/packages/linux.scm (acpi-call-linux-module): New public variable.
---
gnu/packages/linux.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 08389e2..aa3b36c 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -562,6 +562,53 @@ between the CDemu userspace daemon and linux kernel.")
;;; Linux kernel modules.
;;;
+(define-public acpi-call-linux-module
+ (package
+ (name "acpi-call-linux-module")
+ (version "3.17")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/teleshoes/acpi_call.git")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "04mbv4lasm3vv1j4ndxhnz4hvp5wg8f5fc9q6qxv0nhvwjynmsl3"))))
+ (build-system linux-module-build-system)
+ (arguments
+ `(#:tests? #f ; no tests
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-for-linux-4.12
+ (lambda _
+ (substitute* "acpi_call.c"
+ (("asm/uaccess\\.h")
+ "linux/uaccess.h"))
+ #t))
+ (add-after 'install 'install-documentation
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (doc (string-append out "/share/doc/" ,name "-" ,version)))
+ (for-each (lambda (file)
+ (let ((target (string-append doc "/" file)))
+ (mkdir-p (dirname target))
+ (copy-recursively file target)))
+ (list "README.md" "examples"))
+ #t))))))
+ (home-page "https://github.com/teleshoes/acpi_call")
+ (synopsis "Linux kernel module to perform ACPI method calls")
+ (description
+ "This simple Linux kernel module allows calls from user space to any
address@hidden, Advanced Configuration and Power Interface} method provided by
+your computer's firmware, by writing to @file{/proc/acpi/call}. You can pass
+any number of parameters of types @code{ACPI_INTEGER}, @code{ACPI_STRING},
+and @code{ACPI_BUFFER}.
+
+It grants direct and undocumented access to your hardware that may cause damage
+and should be used with caution, especially on untested models.")
+ (license license:gpl3+))) ; see README.md (no licence headers)
+
(define-public vhba-module
(package
(name "vhba-module")
- branch master updated (f5557bd -> b8ae2e9), guix-commits, 2019/05/19
- 01/17: gnu: openconnect: Update to 8.03., guix-commits, 2019/05/19
- 03/17: gnu: Add acpi-call-linux-module.,
guix-commits <=
- 05/17: gnu: wimlib: Update to 1.13.1., guix-commits, 2019/05/19
- 04/17: gnu: Add tpacpi-bat., guix-commits, 2019/05/19
- 06/17: gnu: restic: Update to 0.9.5., guix-commits, 2019/05/19
- 02/17: gnu: Move Linux-Libre modules to their own section., guix-commits, 2019/05/19
- 12/17: gnu: tumbler: Update to 0.2.4., guix-commits, 2019/05/19
- 09/17: gnu: exo: Don't use NAME in source URI., guix-commits, 2019/05/19
- 16/17: gnu: s6: Update to 2.8.0.1., guix-commits, 2019/05/19
- 17/17: gnu: libu2f-host: Update to 1.1.10., guix-commits, 2019/05/19
- 07/17: gnu: exo: Update to 0.12.5., guix-commits, 2019/05/19
- 14/17: gnu: stunnel: Update to 5.54., guix-commits, 2019/05/19