mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 01:04:25 +00:00
cfs-zen-tweaks: init at 1.2.0
This commit is contained in:
parent
ccb03c908b
commit
9a94139d34
43
pkgs/os-specific/linux/cfs-zen-tweaks/default.nix
Normal file
43
pkgs/os-specific/linux/cfs-zen-tweaks/default.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{ 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 ];
|
||||
};
|
||||
}
|
@ -4251,6 +4251,8 @@ with pkgs;
|
||||
|
||||
cfssl = callPackage ../tools/security/cfssl { };
|
||||
|
||||
cfs-zen-tweaks = callPackage ../os-specific/linux/cfs-zen-tweaks { };
|
||||
|
||||
chafa = callPackage ../tools/misc/chafa {
|
||||
inherit (darwin.apple_sdk.frameworks) Foundation;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user