504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
38 lines
826 B
Nix
38 lines
826 B
Nix
{ 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 ];
|
|
};
|
|
}
|