nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

schedtool: fix build with gcc 13

> error: pointer/integer type mismatch in conditional expression [-Wint-conversion]

Point meta.homepage to the GitHub repo
Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com>

+15 -9
+15 -9
pkgs/by-name/sc/schedtool/package.nix
··· 4 4 fetchFromGitHub, 5 5 }: 6 6 7 - stdenv.mkDerivation rec { 7 + stdenv.mkDerivation (finalAttrs: { 8 8 pname = "schedtool"; 9 9 version = "1.3.0"; 10 10 11 11 src = fetchFromGitHub { 12 12 owner = "freequaos"; 13 13 repo = "schedtool"; 14 - rev = "${pname}-${version}"; 15 - sha256 = "1wdw6fnf9a01xfjhdah3mn8bp1bvahf2lfq74i6hk5b2cagkppyp"; 14 + rev = "schedtool-${finalAttrs.version}"; 15 + hash = "sha256-1987n2JilQlNJAc7KhxUe4W7kK0Dqgal6wGo5KwzvPE="; 16 16 }; 17 + 18 + # Fix build with GCC 13 19 + postPatch = '' 20 + substituteInPlace schedtool.c \ 21 + --replace-fail 'TAB[policy] : policy' 'TAB[policy] : (char*)(intptr_t)policy' 22 + ''; 17 23 18 24 makeFlags = [ 19 25 "DESTDIR=$(out)" 20 26 "DESTPREFIX=" 21 27 ]; 22 28 23 - meta = with lib; { 29 + meta = { 24 30 description = "Query or alter a process' scheduling policy under Linux"; 25 31 mainProgram = "schedtool"; 26 - homepage = "https://freequaos.host.sk/schedtool/"; 27 - license = licenses.gpl2Only; 28 - platforms = platforms.linux; 29 - maintainers = with maintainers; [ abbradar ]; 32 + homepage = "https://github.com/freequaos/schedtool"; 33 + license = lib.licenses.gpl2Only; 34 + platforms = lib.platforms.linux; 35 + maintainers = with lib.maintainers; [ abbradar ]; 30 36 }; 31 - } 37 + })