tlp: 1.5.0 -> 1.6.0

Slightly modify the patches to apply cleanly

Changelog: https://github.com/linrunner/TLP/releases/tag/1.6.0
Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
This commit is contained in:
Muhammad Falak R Wani 2023-08-25 04:20:41 +05:30
parent e609061e12
commit 96b5fd3d22
3 changed files with 18 additions and 17 deletions

View File

@ -24,13 +24,13 @@
, networkmanager
}: stdenv.mkDerivation rec {
pname = "tlp";
version = "1.5.0";
version = "1.6.0";
src = fetchFromGitHub {
owner = "linrunner";
repo = "TLP";
rev = version;
sha256 = "sha256-hHel3BVMzTYfE59kxxADnm8tqtUFntqS3RzmJSZlWjM=";
hash = "sha256-XAyko2MxFyo5RyioaexhoFAR3E+I3t/8vD2K3WYNmsI=";
};
# XXX: See patch files for relevant explanations.
@ -127,6 +127,7 @@
description = "Advanced Power Management for Linux";
homepage =
"https://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html";
changelog = "https://github.com/linrunner/TLP/releases/tag/${version}";
platforms = platforms.linux;
maintainers = with maintainers; [ abbradar lovesegfault ];
license = licenses.gpl2Plus;

View File

@ -15,14 +15,14 @@ The reason DESTDIR is used at all, as opposed to the more appropriate
PREFIX, is covered in the nix formula, and is (also) due to the Makefile
being a bit "different."
---
Makefile | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
Makefile | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/Makefile b/Makefile
index e9bbab4..ab05720 100644
index 8042517..1c436ad 100644
--- a/Makefile
+++ b/Makefile
@@ -51,19 +51,19 @@ _TPACPIBAT = $(DESTDIR)$(TPACPIBAT)
@@ -57,20 +57,20 @@ _TPACPIBAT = $(DESTDIR)$(TPACPIBAT)
SED = sed \
-e "s|@TLPVER@|$(TLPVER)|g" \
@ -40,9 +40,11 @@ index e9bbab4..ab05720 100644
-e "s|@TLP_CONFDIR@|$(TLP_CONFDIR)|g" \
- -e "s|@TLP_CONFDEF@|$(TLP_CONFDEF)|g" \
- -e "s|@TLP_CONFREN@|$(TLP_CONFREN)|g" \
- -e "s|@TLP_CONFDPR@|$(TLP_CONFDPR)|g" \
- -e "s|@TLP_CONF@|$(TLP_CONF)|g" \
+ -e "s|@TLP_CONFDEF@|$(_CONFDEF)|g" \
+ -e "s|@TLP_CONFREN@|$(_CONFREN)|g" \
+ -e "s|@TLP_CONFDPR@|$(_CONFDPR)|g" \
+ -e "s|@TLP_CONF@|$(_CONF)|g" \
-e "s|@TLP_RUN@|$(TLP_RUN)|g" \
-e "s|@TLP_VAR@|$(TLP_VAR)|g" \
@ -52,5 +54,5 @@ index e9bbab4..ab05720 100644
INFILES = \
tlp \
--
2.33.0
2.41.0

View File

@ -13,17 +13,15 @@ systemd itself to not use the hook scripts. As per the manual:
> they should rather use the Inhibitor interface[1].
---
Makefile | 6 +++---
tlp-sleep | 11 -----------
tlp-sleep.service.in | 19 +++++++++++++++++++
3 files changed, 22 insertions(+), 14 deletions(-)
delete mode 100644 tlp-sleep
2 files changed, 22 insertions(+), 3 deletions(-)
create mode 100644 tlp-sleep.service.in
diff --git a/Makefile b/Makefile
index ab05720..075b42f 100644
index 1c436ad..fd5211b 100644
--- a/Makefile
+++ b/Makefile
@@ -76,6 +76,7 @@ INFILES = \
@@ -84,6 +84,7 @@ INFILES = \
tlp.rules \
tlp-readconfs \
tlp-run-on \
@ -31,15 +29,15 @@ index ab05720..075b42f 100644
tlp.service \
tlp-stat \
tlp.upstart \
@@ -106,7 +107,6 @@ SHFILES = \
@@ -115,7 +116,6 @@ SHFILES = \
tlp-rdw-udev.in \
tlp-rf.in \
tlp-run-on.in \
- tlp-sleep \
tlp-sleep.elogind \
tlp-stat.in \
tlp-usb-udev.in
@@ -159,7 +159,7 @@ ifneq ($(TLP_NO_INIT),1)
tlp-usb-udev.in \
@@ -172,7 +172,7 @@ ifneq ($(TLP_NO_INIT),1)
endif
ifneq ($(TLP_WITH_SYSTEMD),0)
install -D -m 644 tlp.service $(_SYSD)/tlp.service
@ -48,7 +46,7 @@ index ab05720..075b42f 100644
endif
ifneq ($(TLP_WITH_ELOGIND),0)
install -D -m 755 tlp-sleep.elogind $(_ELOD)/49-tlp-sleep
@@ -216,7 +216,7 @@ uninstall-tlp:
@@ -240,7 +240,7 @@ uninstall-tlp:
rm $(_ULIB)/rules.d/85-tlp.rules
rm -f $(_SYSV)/tlp
rm -f $(_SYSD)/tlp.service
@ -83,5 +81,5 @@ index 0000000..79c202c
+[Install]
+WantedBy=sleep.target
--
2.33.0
2.41.0