New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gamemode: init at 1.4 #67779
gamemode: init at 1.4 #67779
Conversation
I've got a similar package I've been working on. There's a few more patches I've added in prep for a NixOS module to add the daemon; in particular, setting the default config file location ( Also -- some games that can be run with this are still 32-bit, so I tried to get a multiarch build going but eventually had to give up. Have you looked into that at all? (Oh, and -- once done, I might see if we can add this as a dependency for Lutris so that it can toggle gamemode on). This is exciting, thanks for doing this :). |
For reference: https://gist.github.com/frio/03a2731903bf40ae0c11b2c99a24dedf. I've got no further input, I'm really happy to see this and would be happy to put together a module when merged :). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few small suggestions.
src = fetchFromGitHub { | ||
owner = "FeralInteractive"; | ||
repo = "gamemode"; | ||
rev = "7ced21f4b30cc4ceb67928889bc57af8784f1009"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rev = "7ced21f4b30cc4ceb67928889bc57af8784f1009"; | |
rev = version; |
|
||
meta = with stdenv.lib; { | ||
description = "Optimise Linux system performance on demand"; | ||
homepage = https://github.com/FeralInteractive/GameMode/; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quote homepage per RFC45
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or simply use src.meta.homepage
;)
Fixes: #84682 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please apply drewrisinger's changes
@@ -0,0 +1,30 @@ | |||
{ stdenv, meson, ninja, fetchFromGitHub, systemd, pkgconfig, dbus }: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{ stdenv, meson, ninja, fetchFromGitHub, systemd, pkgconfig, dbus }: | |
{ stdenv, meson, ninja, fetchFromGitHub, systemd, pkg-config, dbus }: |
pname = "gamemode"; | ||
version = "1.4"; | ||
|
||
nativeBuildInputs = [ meson ninja pkgconfig ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nativeBuildInputs = [ meson ninja pkgconfig ]; | |
nativeBuildInputs = [ meson ninja pkg-config ]; |
I would love to see this merged! @leo60228 are you still willing to maintain this? The suggestions in this PR haven't been resolved and this has been stale for a while now. I'd be willing to start a new PR based off of this using v1.6.1 + a NixOS module. |
I've mostly lost interest in this package. It'd be great if you were willing to make a new PR, though! |
I've created a new PR for GameMode here: #123433 🙂 |
Motivation for this change
GameMode is a pretty popular package. It requires a daemon as well, which I have not written a NixOS module for due to a lack of experience. If necessary, I can add it to this or a separate PR.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)