gnu: earlyoom: Update to 1.3.1.
* gnu/packages/linux.scm (earlyoom): Update to 1.3.1.master
parent
93f351c72f
commit
9f7a441def
|
@ -2737,54 +2737,49 @@ kmod. The aim is to be compatible with tools, configurations and indices
|
||||||
from the module-init-tools project.")
|
from the module-init-tools project.")
|
||||||
(license license:gpl2+))) ; library under lgpl2.1+
|
(license license:gpl2+))) ; library under lgpl2.1+
|
||||||
|
|
||||||
;;; Use a recent commit, because the latest 1.3 tag suffers from test failures
|
|
||||||
;;; (see:
|
|
||||||
;;; https://github.com/rfjakob/earlyoom/issues/156#issuecomment-591997405).
|
|
||||||
(define-public earlyoom
|
(define-public earlyoom
|
||||||
(let ((commit "7bd4b2c9a285d2b9a4ef6e7a080e83ab95fcdeea")
|
(package
|
||||||
(revision "1"))
|
(name "earlyoom")
|
||||||
(package
|
(version "1.3.1")
|
||||||
(name "earlyoom")
|
(source (origin
|
||||||
(version (git-version "1.3" revision commit))
|
(method git-fetch)
|
||||||
(source (origin
|
(uri (git-reference
|
||||||
(method git-fetch)
|
(url "https://github.com/rfjakob/earlyoom.git")
|
||||||
(uri (git-reference
|
(commit (string-append "v" version))))
|
||||||
(url "https://github.com/rfjakob/earlyoom.git")
|
(file-name (git-file-name name version))
|
||||||
(commit commit)))
|
(sha256
|
||||||
(file-name (git-file-name name version))
|
(base32
|
||||||
(sha256
|
"06sd3jpkdrwqbphsf8jrgs5rxfi7j3xjmygjjvj4xjk4gncz7r2i"))))
|
||||||
(base32
|
(build-system gnu-build-system)
|
||||||
"0sxk8gh734q4rbh9r1q8ab840bn4kffdm8j93x55jspnmmy1wd2c"))))
|
(arguments
|
||||||
(build-system gnu-build-system)
|
`(#:phases (modify-phases %standard-phases
|
||||||
(arguments
|
(delete 'configure)
|
||||||
`(#:phases (modify-phases %standard-phases
|
(add-before 'check 'set-home
|
||||||
(delete 'configure)
|
(lambda _
|
||||||
(add-before 'check 'set-home
|
(setenv "HOME" (getcwd))
|
||||||
(lambda _
|
#t))
|
||||||
(setenv "HOME" (getcwd))
|
(add-after 'build 'install-contribs
|
||||||
#t))
|
;; Install what seems useful from the contrib directory.
|
||||||
(add-after 'build 'install-contribs
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
;; Install what seems useful from the contrib directory.
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(contrib (string-append
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
out "/share/earlyoom/contrib")))
|
||||||
(contrib (string-append
|
(install-file "contrib/notify_all_users.py" contrib)
|
||||||
out "/share/earlyoom/contrib")))
|
#t))))
|
||||||
(install-file "contrib/notify_all_users.py" contrib)
|
#:make-flags (let* ((prefix (assoc-ref %outputs "out")))
|
||||||
#t))))
|
(list "CC=gcc"
|
||||||
#:make-flags (let* ((prefix (assoc-ref %outputs "out")))
|
(string-append "VERSION=v" ,version)
|
||||||
(list "CC=gcc"
|
(string-append "PREFIX=" prefix)
|
||||||
(string-append "VERSION=v" ,version)
|
(string-append "SYSCONFDIR=" prefix "/etc")))
|
||||||
(string-append "PREFIX=" prefix)
|
#:test-target "test"))
|
||||||
(string-append "SYSCONFDIR=" prefix "/etc")))
|
(native-inputs `(("go" ,go) ;for the test suite
|
||||||
#:test-target "test"))
|
("pandoc" ,ghc-pandoc))) ;to generate the manpage
|
||||||
(native-inputs `(("go" ,go) ;for the test suite
|
(home-page "https://github.com/rfjakob/earlyoom")
|
||||||
("pandoc" ,ghc-pandoc))) ;to generate the manpage
|
(synopsis "Simple out of memory (OOM) daemon for the Linux kernel")
|
||||||
(home-page "https://github.com/rfjakob/earlyoom")
|
(description "Early OOM is a minimalist out of memory (OOM) daemon that
|
||||||
(synopsis "Simple out of memory (OOM) daemon for the Linux kernel")
|
|
||||||
(description "Early OOM is a minimalist out of memory (OOM) daemon that
|
|
||||||
runs in user space and provides a more responsive and configurable alternative
|
runs in user space and provides a more responsive and configurable alternative
|
||||||
to the in-kernel OOM killer.")
|
to the in-kernel OOM killer.")
|
||||||
(license license:expat))))
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public eudev
|
(define-public eudev
|
||||||
;; The post-systemd fork, maintained by Gentoo.
|
;; The post-systemd fork, maintained by Gentoo.
|
||||||
|
|
Reference in New Issue