Skip to content

Commit

Permalink
pkgs/cfs-zen-tweaks: fix exec permission
Browse files Browse the repository at this point in the history
  • Loading branch information
m-bdf committed Jun 13, 2023
1 parent 86f3bba commit 4017ae3
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions pkgs/os-specific/linux/cfs-zen-tweaks/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 4017ae3

Please sign in to comment.