blob: d7a06ed6e737fa19430f1911fb691946c111fd73 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{ lib
, stdenv
, fetchFromGitHub
, cmake
, makeWrapper
, gawk
}:
stdenv.mkDerivation rec {
pname = "cfs-zen-tweaks";
version = "1.3.0";
src = fetchFromGitHub {
owner = "igo95862";
repo = "cfs-zen-tweaks";
rev = version;
hash = "sha256-E3sNWWXm0NEqLCzFccd/nfYby+/b/MVjIHeGlDxV1W4=";
};
preConfigure = ''
substituteInPlace set-cfs-zen-tweaks.sh \
--replace '$(gawk' '$(${gawk}/bin/gawk'
'';
preFixup = ''
chmod +x $out/lib/cfs-zen-tweaks/set-cfs-zen-tweaks.sh
'';
nativeBuildInputs = [ cmake ];
meta = with lib; {
description = "Tweak Linux CPU scheduler for desktop responsiveness";
homepage = "https://github.com/igo95862/cfs-zen-tweaks";
license = licenses.gpl2Only;
platforms = platforms.linux;
maintainers = with maintainers; [ mkg20001 ];
};
}
|