guix_mirror_bot pushed a commit to branch master
in repository guix.
commit b0a1a0cbd78142952a7607e1482635fc812cdebd
Author: terramorpha <[email protected]>
AuthorDate: Sun Jan 25 18:09:12 2026 -0500
gnu: Add gamemode.
* gnu/packages/linux.scm (gamemode): New variable.
Change-Id: I7ea221048badf4e28b3a964de8a0a61eab5b6210
Signed-off-by: Liliana Marie Prikler <[email protected]>
---
gnu/packages/linux.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 99b8005880..27c5448f9b 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -86,6 +86,7 @@
;;; Copyright © 2025 Mathieu Laparie <[email protected]>
;;; Copyright © 2025 John Kehayias <[email protected]>
;;; Copyright © 2025 Arjan Adriaanse <[email protected]>
+;;; Copyright © 2026 Justin Veilleux <[email protected]>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -7749,6 +7750,54 @@ applications running on the Linux console. It allows
users to select items
and copy/paste text in the console and in xterm.")
(license license:gpl2+)))
+(define-public gamemode
+ (package
+ (name "gamemode")
+ (version "1.8.2")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/FeralInteractive/gamemode")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
"14i3y385jzpr30lxk38z84rq76sy4cz0pwm54rm62f4mnk0xwjjp"))))
+ (build-system meson-build-system)
+ (arguments
+ (list
+ #:configure-flags
+ #~(list
+ ;; Don't build sample programs.
+ "-Dwith-examples=false"
+ ;; Build gamemoderun and other utilities.
+ "-Dwith-util=true"
+ ;; Use elogind instead of systemd for sd-bus.
+ "-Dwith-sd-bus-provider=elogind"
+ ;; Install PAM limits.d config to the package prefix; a Guix
+ ;; service can then install it to /etc/security/limits.d/.
+ (string-append "-Dwith-pam-limits-dir=" #$output
+ "/etc/security/limits.d")
+ ;; Guix does not use systemd.
+ "-Dwith-systemd-user-unit=false"
+ "-Dwith-systemd-group=false")))
+ (native-inputs
+ (list pkg-config))
+ (inputs
+ (list
+ dbus
+ elogind
+ libinih))
+ (synopsis "Optimise Linux system performance on demand")
+ (description "GameMode is a daemon and library for Linux that allows games
to
+request a set of optimisations be temporarily applied to the host OS and/or a
+game process. GameMode was designed primarily as a stop-gap solution to
problems
+with the Intel and AMD CPU powersave or ondemand governors, but is now host to
a
+range of optimisation features and configurations, including CPU governor, I/O
+priority, process niceness, kernel scheduler, screensaver inhibiting, GPU
+performance mode, and custom scripts.")
+ (home-page "https://github.com/FeralInteractive/gamemode")
+ (license license:bsd-3)))
+
(define-public btrfs-progs
(package
(name "btrfs-progs")