Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
38 lines
826 B
Nix
38 lines
826 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "schedtool";
|
|
version = "1.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "freequaos";
|
|
repo = "schedtool";
|
|
rev = "schedtool-${finalAttrs.version}";
|
|
hash = "sha256-1987n2JilQlNJAc7KhxUe4W7kK0Dqgal6wGo5KwzvPE=";
|
|
};
|
|
|
|
# Fix build with GCC 13
|
|
postPatch = ''
|
|
substituteInPlace schedtool.c \
|
|
--replace-fail 'TAB[policy] : policy' 'TAB[policy] : (char*)(intptr_t)policy'
|
|
'';
|
|
|
|
makeFlags = [
|
|
"DESTDIR=$(out)"
|
|
"DESTPREFIX="
|
|
];
|
|
|
|
meta = {
|
|
description = "Query or alter a process' scheduling policy under Linux";
|
|
mainProgram = "schedtool";
|
|
homepage = "https://github.com/freequaos/schedtool";
|
|
license = lib.licenses.gpl2Only;
|
|
platforms = lib.platforms.linux;
|
|
maintainers = [ ];
|
|
};
|
|
})
|