mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 20:55:31 +03:00
schedtool: fix build with gcc 13 (#368504)
This commit is contained in:
commit
e9620136c7
1 changed files with 15 additions and 9 deletions
|
@ -4,28 +4,34 @@
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "schedtool";
|
pname = "schedtool";
|
||||||
version = "1.3.0";
|
version = "1.3.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "freequaos";
|
owner = "freequaos";
|
||||||
repo = "schedtool";
|
repo = "schedtool";
|
||||||
rev = "${pname}-${version}";
|
rev = "schedtool-${finalAttrs.version}";
|
||||||
sha256 = "1wdw6fnf9a01xfjhdah3mn8bp1bvahf2lfq74i6hk5b2cagkppyp";
|
hash = "sha256-1987n2JilQlNJAc7KhxUe4W7kK0Dqgal6wGo5KwzvPE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Fix build with GCC 13
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace schedtool.c \
|
||||||
|
--replace-fail 'TAB[policy] : policy' 'TAB[policy] : (char*)(intptr_t)policy'
|
||||||
|
'';
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"DESTDIR=$(out)"
|
"DESTDIR=$(out)"
|
||||||
"DESTPREFIX="
|
"DESTPREFIX="
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "Query or alter a process' scheduling policy under Linux";
|
description = "Query or alter a process' scheduling policy under Linux";
|
||||||
mainProgram = "schedtool";
|
mainProgram = "schedtool";
|
||||||
homepage = "https://freequaos.host.sk/schedtool/";
|
homepage = "https://github.com/freequaos/schedtool";
|
||||||
license = licenses.gpl2Only;
|
license = lib.licenses.gpl2Only;
|
||||||
platforms = platforms.linux;
|
platforms = lib.platforms.linux;
|
||||||
maintainers = with maintainers; [ abbradar ];
|
maintainers = with lib.maintainers; [ abbradar ];
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue