diff options
| author | terramorpha <terramorpha@cock.li> | 2026-01-25 18:09:12 -0500 |
|---|---|---|
| committer | Liliana Marie Prikler <liliana.prikler@gmail.com> | 2026-02-10 14:09:52 +0100 |
| commit | b0a1a0cbd78142952a7607e1482635fc812cdebd (patch) | |
| tree | 061beb96a5c3589ee87fed54f1f54064550d2604 /gnu/packages | |
| parent | 02564e94f9529ce9d4f3e5d1020bac7208532a1d (diff) | |
gnu: Add gamemode.
* gnu/packages/linux.scm (gamemode): New variable.
Change-Id: I7ea221048badf4e28b3a964de8a0a61eab5b6210
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/linux.scm | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 99b80058804..27c5448f9bc 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -86,6 +86,7 @@ ;;; Copyright © 2025 Mathieu Laparie <mlaparie@disr.it> ;;; Copyright © 2025 John Kehayias <john.kehayias@protonmail.com> ;;; Copyright © 2025 Arjan Adriaanse <arjan@adriaan.se> +;;; Copyright © 2026 Justin Veilleux <terramorpha@cock.li> ;;; ;;; 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") |
