mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-31 22:51:22 +00:00
Merge pull request #223952 from m-bdf/fix-cfs-zen-tweaks
Fix cfs-zen-tweaks
This commit is contained in:
commit
95c729c030
@ -23,6 +23,12 @@ in
|
||||
config = mkIf cfg.enable {
|
||||
systemd.packages = [ pkgs.cfs-zen-tweaks ];
|
||||
|
||||
systemd.services.set-cfs-tweak.wantedBy = [ "multi-user.target" "suspend.target" "hibernate.target" "hybrid-sleep.target" "suspend-then-hibernate.target" ];
|
||||
systemd.services.set-cfs-tweaks.wantedBy = [
|
||||
"multi-user.target"
|
||||
"suspend.target"
|
||||
"hibernate.target"
|
||||
"hybrid-sleep.target"
|
||||
"suspend-then-hibernate.target"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
@ -17,21 +17,16 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "HRR2tdjNmWyrpbcMlihSdb/7g/tHma3YyXogQpRCVyo=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs set-cfs-zen-tweaks.bash
|
||||
chmod +x set-cfs-zen-tweaks.bash
|
||||
preConfigure = ''
|
||||
substituteInPlace set-cfs-zen-tweaks.bash \
|
||||
--replace '$(gawk' '$(${gawk}/bin/gawk'
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
gawk
|
||||
];
|
||||
preFixup = ''
|
||||
chmod +x $out/lib/cfs-zen-tweaks/set-cfs-zen-tweaks.bash
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
makeWrapper
|
||||
];
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tweak Linux CPU scheduler for desktop responsiveness";
|
||||
|
Loading…
Reference in New Issue
Block a user