Merge pull request #30038 from jbaum98/splint-darwin

splint: Add darwin support

authored by

Orivej Desh and committed by
GitHub
6e4fb7d0 ad0c2d5a

+15 -2
+13
pkgs/development/tools/analysis/splint/darwin.patch
··· 1 + diff --git a/src/osd.c b/src/osd.c 2 + index ebe214a..4ba81d5 100644 3 + --- a/src/osd.c 4 + +++ b/src/osd.c 5 + @@ -516,7 +516,7 @@ osd_getPid () 6 + # if defined (WIN32) || defined (OS2) && defined (__IBMC__) 7 + int pid = _getpid (); 8 + # else 9 + - __pid_t pid = getpid (); 10 + + pid_t pid = getpid (); 11 + # endif 12 + 13 + return (int) pid;
+2 -2
pkgs/development/tools/analysis/splint/default.nix
··· 8 8 sha256 = "02pv8kscsrkrzip9r08pfs9xs98q74c52mlxzbii6cv6vx1vd3f7"; 9 9 }; 10 10 11 - patches = [ ./tmpdir.patch ]; 11 + patches = [ ./tmpdir.patch ] ++ stdenv.lib.optional stdenv.isDarwin ./darwin.patch; 12 12 13 13 buildInputs = [ flex ]; 14 14 ··· 27 27 ''; 28 28 29 29 license = licenses.gpl2Plus; 30 - platforms = platforms.linux; 30 + platforms = platforms.unix; 31 31 }; 32 32 }