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
tlp: 1.2.2 -> 1.3.1 #81087
tlp: 1.2.2 -> 1.3.1 #81087
Conversation
634935d
to
250d819
Compare
@GrahamcOfBorg build tlp |
0cdb59a
to
4f8e2f1
Compare
4f8e2f1
to
d1f87b0
Compare
7d35335
to
317ba9b
Compare
a0aef53
to
dd19486
Compare
Running this now, it seems pretty hot. but that's the only thing that should be hot cuz it wouldn't be working if my system was on fire. |
|
dd19486
to
0b8245d
Compare
62807ef
to
7c6f41e
Compare
This still needs a fix for the sleep (suspend/resume) unit which I am working on. |
442ba2d
to
3ef201a
Compare
Alright, this is now complete and everything works! |
3ef201a
to
ee7becd
Compare
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.
I believe everything is 🔥
tlp: 1.2.2 -> 1.3.1 (cherry picked from commit 76f4f6b)
# XXX: While [1] states that DESTDIR should not be used, and that the correct | ||
# variable to set is, in fact, PREFIX, tlp thinks otherwise. The Makefile for | ||
# tlp concerns itself only with DESTDIR [2] (possibly incorrectly) and so we set | ||
# that as opposed to PREFIX, despite what [1] says. | ||
# | ||
# [1]: https://github.com/NixOS/nixpkgs/issues/65718 | ||
# [2]: https://github.com/linrunner/TLP/blob/ab788abf4936dfb44fbb408afc34af834230a64d/Makefile#L4-L46 | ||
makeFlags = [ | ||
"DESTDIR=${outRef}" | ||
"TLP_SBIN=${outRef}/bin" | ||
"TLP_BIN=${outRef}/bin" | ||
"TLP_TLIB=${outRef}/share/tlp" | ||
"TLP_FLIB=${outRef}/share/tlp/func.d" | ||
"TLP_ULIB=${outRef}/lib/udev" | ||
"TLP_NMDSP=${outRef}/etc/NetworkManager/dispatcher.d" | ||
"TLP_SHCPL=${outRef}/share/bash-completion/completions" | ||
"TLP_MAN=${outRef}/share/man" | ||
"TLP_META=${outRef}/share/metainfo" | ||
"DESTDIR=${placeholder "out"}" |
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.
I think the upstream uses DESTDIR
correctly (as demonstrated by fix-makefile-sed.patch
) and the issue is that it does not support GNU installation directories. Keeping this in mind, the correct solution would be using ${placeholder "out"}
in place of ${outRef}
and asking upstream to make the path overridability more granular as per GNU guidelines.
Motivation for this change
I noticed that
tlp
was out of date and that it's nixos module had some spiderwebs as well. This bumpstlp
to the latest1.3.1
and updates the relevant module.Fixes #81049
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)