tlp: 1.4.0 -> 1.5.0
This commit is contained in:
parent
8dbc4efd40
commit
282788713f
|
@ -24,19 +24,19 @@
|
||||||
, networkmanager
|
, networkmanager
|
||||||
}: stdenv.mkDerivation rec {
|
}: stdenv.mkDerivation rec {
|
||||||
pname = "tlp";
|
pname = "tlp";
|
||||||
version = "1.4.0";
|
version = "1.5.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "linrunner";
|
owner = "linrunner";
|
||||||
repo = "TLP";
|
repo = "TLP";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-Blwj4cqrrYXohnGyJYe+1NYifxqfS4DoVUHmxFf62i4=";
|
sha256 = "sha256-hHel3BVMzTYfE59kxxADnm8tqtUFntqS3RzmJSZlWjM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# XXX: See patch files for relevant explanations.
|
# XXX: See patch files for relevant explanations.
|
||||||
patches = [
|
patches = [
|
||||||
./patches/0001-makefile-correctly-sed-paths.patch
|
./patches/0001-makefile-correctly-sed-paths.patch
|
||||||
./patches/0002-tlp-sleep.service-reintroduce.patch
|
./patches/0002-reintroduce-tlp-sleep-service.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [ perl ];
|
buildInputs = [ perl ];
|
||||||
|
@ -50,12 +50,11 @@
|
||||||
# [1]: https://github.com/NixOS/nixpkgs/issues/65718
|
# [1]: https://github.com/NixOS/nixpkgs/issues/65718
|
||||||
# [2]: https://github.com/linrunner/TLP/blob/ab788abf4936dfb44fbb408afc34af834230a64d/Makefile#L4-L46
|
# [2]: https://github.com/linrunner/TLP/blob/ab788abf4936dfb44fbb408afc34af834230a64d/Makefile#L4-L46
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"DESTDIR=${placeholder "out"}"
|
|
||||||
|
|
||||||
"TLP_NO_INIT=1"
|
"TLP_NO_INIT=1"
|
||||||
"TLP_WITH_ELOGIND=0"
|
"TLP_WITH_ELOGIND=0"
|
||||||
"TLP_WITH_SYSTEMD=1"
|
"TLP_WITH_SYSTEMD=1"
|
||||||
|
|
||||||
|
"DESTDIR=${placeholder "out"}"
|
||||||
"TLP_BATD=/share/tlp/bat.d"
|
"TLP_BATD=/share/tlp/bat.d"
|
||||||
"TLP_BIN=/bin"
|
"TLP_BIN=/bin"
|
||||||
"TLP_CONFDEF=/share/tlp/defaults.conf"
|
"TLP_CONFDEF=/share/tlp/defaults.conf"
|
||||||
|
|
|
@ -57,23 +57,6 @@ index ab05720..075b42f 100644
|
||||||
rm -f $(_ELOD)/49-tlp-sleep
|
rm -f $(_ELOD)/49-tlp-sleep
|
||||||
rm -f $(_SHCPL)/tlp-stat
|
rm -f $(_SHCPL)/tlp-stat
|
||||||
rm -f $(_SHCPL)/bluetooth
|
rm -f $(_SHCPL)/bluetooth
|
||||||
diff --git a/tlp-sleep b/tlp-sleep
|
|
||||||
deleted file mode 100644
|
|
||||||
index e548d55..0000000
|
|
||||||
--- a/tlp-sleep
|
|
||||||
+++ /dev/null
|
|
||||||
@@ -1,11 +0,0 @@
|
|
||||||
-#!/bin/sh
|
|
||||||
-
|
|
||||||
-# tlp - systemd suspend/resume hook
|
|
||||||
-#
|
|
||||||
-# Copyright (c) 2021 Thomas Koch <linrunner at gmx.net> and others.
|
|
||||||
-# This software is licensed under the GPL v2 or later.
|
|
||||||
-
|
|
||||||
-case $1 in
|
|
||||||
- pre) tlp suspend ;;
|
|
||||||
- post) tlp resume ;;
|
|
||||||
-esac
|
|
||||||
diff --git a/tlp-sleep.service.in b/tlp-sleep.service.in
|
diff --git a/tlp-sleep.service.in b/tlp-sleep.service.in
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000..79c202c
|
index 0000000..79c202c
|
Loading…
Reference in a new issue