nixpkgs/pkgs/os-specific/linux/cfs-zen-tweaks/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
826 B
Nix
Raw Normal View History

2021-11-24 10:06:56 +03:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, makeWrapper
, gawk
}:
stdenv.mkDerivation rec {
pname = "cfs-zen-tweaks";
2023-11-24 06:40:48 +03:00
version = "1.3.0";
2021-11-24 10:06:56 +03:00
src = fetchFromGitHub {
owner = "igo95862";
repo = "cfs-zen-tweaks";
rev = version;
2023-11-24 06:40:48 +03:00
hash = "sha256-E3sNWWXm0NEqLCzFccd/nfYby+/b/MVjIHeGlDxV1W4=";
2021-11-24 10:06:56 +03:00
};
preConfigure = ''
2023-11-24 06:40:48 +03:00
substituteInPlace set-cfs-zen-tweaks.sh \
2021-11-24 10:06:56 +03:00
--replace '$(gawk' '$(${gawk}/bin/gawk'
'';
preFixup = ''
2023-11-24 06:40:48 +03:00
chmod +x $out/lib/cfs-zen-tweaks/set-cfs-zen-tweaks.sh
'';
2021-11-24 10:06:56 +03:00
nativeBuildInputs = [ cmake ];
2021-11-24 10:06:56 +03:00
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 ];
};
}