-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
earlyoom: use upstream systemd service and add proper test #331580
Conversation
Building the manpage requires extra programs, namely Further, it is desirable to split outputs. A more restricted host environment can be stripped of some otherwise undesirable files to save space. |
runHook postInstall | ||
''; | ||
"PREFIX=${placeholder "out"}" | ||
] ++ lib.optional withManpage "MANDIR=${placeholder "man"}/share/man"; |
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.
Does this placeholder work? Usually I bumped into some issues.
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.
Does this placeholder work? Usually I bumped into some issues.
I'm not sure what issue are you referring to? With these options, the output layout looks correct for me.
a34a342
to
acc2ec2
Compare
Stopped working after changes from NixOS/nixpkgs#331580
default = [ ]; | ||
example = [ | ||
"-g" | ||
"--prefer '(^|/)(java|chromium)$'" |
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.
This format seems to no longer work due to the call to lib.escapeShellArgs
that wasn't previously there. I had to split out space-separated flags into individual list items: msfjarvis/dotfiles@a711550
Without the change in my configuration, the flag that ended up in EARLYOOM_ARGS
was '--avoid '\\''^(gnome.*|firefox.*|pipewire.*|git.*)$'\\'''
which was seen by earlyoom as a single parameter not a flag and caused the service to stop running.
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.
@msfjarvis Thanks, finally was looking into why my earlyoom service hasn't worked for a few days and saw this PR.
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.
@oxalica this needs a release note and the example fixed
Description of changes
It seems that we havewithManpage
option even though manual is installed to a separate outputman
. If user only getout
in their closure when documentation is disabled, why would we need a separatewithManpage
flag? Could we remove and always enable it?Ok, I kept it with a comment. It may be useful when someone is targeting a platform without pandoc.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.