dmitry: fix build on gcc 14

awwpotato f75aad09 f90d0a33

+34 -4
+28
pkgs/by-name/dm/dmitry/implicit-function-declaration.patch
··· 1 + --- 2 + src/dmitry.c | 1 + 3 + src/file.c | 2 ++ 4 + 2 files changed, 3 insertions(+) 5 + 6 + diff --git a/src/dmitry.c b/src/dmitry.c 7 + index d47f231..567482d 100644 8 + --- a/src/dmitry.c 9 + +++ b/src/dmitry.c 10 + @@ -9,6 +9,7 @@ 11 + #include <ctype.h> 12 + #include <string.h> 13 + #include <signal.h> 14 + +#include <stdlib.h> 15 + #include <sys/types.h> 16 + #include <sys/socket.h> 17 + #include <netinet/in.h> 18 + diff --git a/src/file.c b/src/file.c 19 + index f4ad48b..3714786 100644 20 + --- a/src/file.c 21 + +++ b/src/file.c 22 + @@ -1,4 +1,6 @@ 23 + #include "includes/file.h" 24 + +#include <string.h> 25 + +#include <stdlib.h> 26 + int file_prep() 27 + { 28 + outputfile[strlen(outputfile)] = '\0';
+6 -4
pkgs/by-name/dm/dmitry/package.nix
··· 16 16 hash = "sha256-cYFeBM8xFMaLXYk6Rg+5JvfbbIJI9F3mefzCX3+XbB0="; 17 17 }; 18 18 19 + patches = [ ./implicit-function-declaration.patch ]; 20 + 19 21 nativeBuildInputs = [ autoreconfHook ]; 20 22 21 23 env.NIX_CFLAGS_COMPILE = toString [ "-fcommon" ]; 22 24 23 - meta = with lib; { 25 + meta = { 24 26 description = "Deepmagic Information Gathering Tool"; 25 27 mainProgram = "dmitry"; 26 28 homepage = "https://github.com/jaygreig86/dmitry"; 27 - maintainers = with maintainers; [ d3vil0p3r ]; 28 - platforms = platforms.linux; 29 - license = licenses.gpl2Plus; 29 + maintainers = with lib.maintainers; [ d3vil0p3r ]; 30 + platforms = lib.platforms.linux; 31 + license = lib.licenses.gpl2Plus; 30 32 }; 31 33 }