aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2022-01-13 14:43:13 +0200
committerEfraim Flashner <efraim@flashner.co.il>2022-01-14 11:41:19 +0200
commit720baa1e0b64895b83bfc3c2aeed8c52e9000498 (patch)
tree43392d8bd760fbe538a0534ff652bcf76ecf4df5 /gnu/packages
parent130703f8c50865f0bb9e274017c4bc96ae598e0a (diff)
downloadguix-720baa1e0b64895b83bfc3c2aeed8c52e9000498.tar.gz
guix-720baa1e0b64895b83bfc3c2aeed8c52e9000498.zip
gnu: earlyoom: Rewrite with gexps.
* gnu/packages/linux.scm (earlyoom)[arguments]: Rewrite with gexps.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/linux.scm39
1 files changed, 19 insertions, 20 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 37de4391af..46645e98b4 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -3735,26 +3735,25 @@ from the module-init-tools project.")
"16iyn51xlrsbshc7p5xl2338yyfzknaqc538sa7mamgccqwgyvvq"))))
(build-system gnu-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (delete 'configure) ; no configure script
- (add-before 'check 'set-go-HOME
- (lambda _
- (setenv "HOME" (getcwd))
- #t))
- (add-before 'check 'disable-failing-test
- (lambda _
- ;; This test relies on writing to /proc/%d/oom_score_adj.
- (substitute* "testsuite_cli_test.go"
- (("TestI" match)
- (string-append "skipped" match)))
- #t)))
- #:make-flags (let* ((prefix (assoc-ref %outputs "out")))
- (list ,(string-append "CC=" (cc-for-target))
- (string-append "VERSION=v" ,version)
- (string-append "PREFIX=" prefix)
- (string-append "SYSCONFDIR=" prefix "/etc")
- "GO111MODULE=off"))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'configure) ; no configure script
+ (add-before 'check 'set-go-HOME
+ (lambda _
+ (setenv "HOME" (getcwd))))
+ (add-before 'check 'disable-failing-test
+ (lambda _
+ ;; This test relies on writing to /proc/%d/oom_score_adj.
+ (substitute* "testsuite_cli_test.go"
+ (("TestI" match)
+ (string-append "skipped" match))))))
+ #:make-flags
+ #~(list (string-append "CC=" #$(cc-for-target))
+ (string-append "VERSION=v" #$version)
+ (string-append "PREFIX=" #$output)
+ (string-append "SYSCONFDIR=" #$output "/etc")
+ "GO111MODULE=off")
#:test-target "test"))
(native-inputs
(list