[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/10: gnu: corefreq: Stop using %OUTPUTS.
From: |
guix-commits |
Subject: |
01/10: gnu: corefreq: Stop using %OUTPUTS. |
Date: |
Tue, 14 Dec 2021 13:35:25 -0500 (EST) |
nckx pushed a commit to branch master
in repository guix.
commit 058766ec7aee9373346c28497af1875da82aa991
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sat Dec 11 01:34:00 2021 +0100
gnu: corefreq: Stop using %OUTPUTS.
* gnu/packages/linux.scm (corefreq)[arguments]: Use Gexps to remove use
of %OUTPUTS.
---
gnu/packages/linux.scm | 76 +++++++++++++++++++++++++-------------------------
1 file changed, 38 insertions(+), 38 deletions(-)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 1e39d3d..c752df7 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -1237,44 +1237,44 @@ and should be used with caution, especially on untested
models.")
(build-system linux-module-build-system)
(outputs (list "out" "linux-module"))
(arguments
- `(#:imported-modules ((guix build gnu-build-system)
- ,@%linux-module-build-system-modules)
- #:modules ((guix build linux-module-build-system)
- ((guix build gnu-build-system) #:prefix gnu:)
- (guix build utils))
- #:make-flags
- (list (string-append "CC=" ,(cc-for-target))
- "OPTIM_LVL=3"
- (string-append "PREFIX=" (assoc-ref %outputs "out")))
- #:tests? #f ; no test suite
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'untangle-module-targets
- ;; Having to build everything in one pass would complicate the
- ;; definition. Let each build system handle what it's good at.
- (lambda _
- (substitute* "Makefile"
- ((".*MAKE.*KERNELDIR.*") ""))))
- (add-after 'build 'gnu:build
- (assoc-ref gnu:%standard-phases 'build))
- (add-after 'install 'gnu:install
- (assoc-ref gnu:%standard-phases 'install))
- (add-after 'install 'separate-module
- (lambda* (#:key outputs #:allow-other-keys)
- ;; Adding INSTALL_MOD_PATH= to #:make-flags would still create an
- ;; empty <out>/lib/modules directory, so just do it all by hand.
- (let* ((out (assoc-ref outputs "out"))
- (module (assoc-ref outputs "linux-module")))
- (mkdir-p (string-append module "/lib"))
- (rename-file (string-append out "/lib/modules")
- (string-append module "/lib/modules")))))
- (add-after 'install 'install-README
- ;; There is no proper documentation. Provide something.
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (doc (string-append out "/share/doc/"
- ,name "-" ,version)))
- (install-file "README.md" doc)))))))
+ (list #:imported-modules `((guix build gnu-build-system)
+ ,@%linux-module-build-system-modules)
+ #:modules `((guix build linux-module-build-system)
+ ((guix build gnu-build-system) #:prefix gnu:)
+ (guix build utils))
+ #:make-flags
+ #~(list (string-append "CC=" #$(cc-for-target))
+ "OPTIM_LVL=3"
+ (string-append "PREFIX=" #$output))
+ #:tests? #f ; no test suite
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'untangle-module-targets
+ ;; Having to build everything in one pass would complicate the
+ ;; definition. Let each build system handle what it's good
at.
+ (lambda _
+ (substitute* "Makefile"
+ ((".*MAKE.*KERNELDIR.*") ""))))
+ (add-after 'build 'gnu:build
+ (assoc-ref gnu:%standard-phases 'build))
+ (add-after 'install 'gnu:install
+ (assoc-ref gnu:%standard-phases 'install))
+ (add-after 'install 'separate-module
+ (lambda* (#:key outputs #:allow-other-keys)
+ ;; Adding INSTALL_MOD_PATH= to #:make-flags would still
create an
+ ;; empty <out>/lib/modules directory, so just do it all by
hand.
+ (let* ((out (assoc-ref outputs "out"))
+ (module (assoc-ref outputs "linux-module")))
+ (mkdir-p (string-append module "/lib"))
+ (rename-file (string-append out "/lib/modules")
+ (string-append module "/lib/modules")))))
+ (add-after 'install 'install-README
+ ;; There is no proper documentation. Provide something.
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (doc (string-append out "/share/doc/"
+ #$name "-" #$version)))
+ (install-file "README.md" doc)))))))
(home-page "https://github.com/cyring/CoreFreq")
(synopsis
"Measure performance data & tweak low-level settings on x86-64 CPUs")
- branch master updated (ae1ec6b -> 13f769c), guix-commits, 2021/12/14
- 01/10: gnu: corefreq: Stop using %OUTPUTS.,
guix-commits <=
- 02/10: gnu: libfprint: Update to 1.94.2., guix-commits, 2021/12/14
- 03/10: gnu: libfprint: Gexp arguments., guix-commits, 2021/12/14
- 04/10: gnu: fprintd: Remove phase return values., guix-commits, 2021/12/14
- 06/10: gnu: fprintd: Gexp arguments., guix-commits, 2021/12/14
- 07/10: gnu: i7z: Fix building with GCC >= 10., guix-commits, 2021/12/14
- 10/10: gnu: festival: Support ALSA output., guix-commits, 2021/12/14
- 08/10: gnu: igt-gpu-tools: Fix build with newer Mesons., guix-commits, 2021/12/14
- 09/10: gnu: igt-gpu-tools: Include man pages., guix-commits, 2021/12/14
- 05/10: gnu: fprintd: Update to 1.94.1., guix-commits, 2021/12/14