depot/third_party/nixpkgs/pkgs/os-specific/linux/cfs-zen-tweaks/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

43 lines
872 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, makeWrapper
, gawk
}:
stdenv.mkDerivation rec {
pname = "cfs-zen-tweaks";
version = "1.2.0";
src = fetchFromGitHub {
owner = "igo95862";
repo = "cfs-zen-tweaks";
rev = version;
sha256 = "HRR2tdjNmWyrpbcMlihSdb/7g/tHma3YyXogQpRCVyo=";
};
postPatch = ''
patchShebangs set-cfs-zen-tweaks.bash
chmod +x set-cfs-zen-tweaks.bash
substituteInPlace set-cfs-zen-tweaks.bash \
--replace '$(gawk' '$(${gawk}/bin/gawk'
'';
buildInputs = [
gawk
];
nativeBuildInputs = [
cmake
makeWrapper
];
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 ];
};
}