tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
dmitry: fix build on gcc 14
awwpotato
10 months ago
f75aad09
f90d0a33
+34
-4
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
dm
dmitry
implicit-function-declaration.patch
package.nix
+28
pkgs/by-name/dm/dmitry/implicit-function-declaration.patch
···
1
1
+
---
2
2
+
src/dmitry.c | 1 +
3
3
+
src/file.c | 2 ++
4
4
+
2 files changed, 3 insertions(+)
5
5
+
6
6
+
diff --git a/src/dmitry.c b/src/dmitry.c
7
7
+
index d47f231..567482d 100644
8
8
+
--- a/src/dmitry.c
9
9
+
+++ b/src/dmitry.c
10
10
+
@@ -9,6 +9,7 @@
11
11
+
#include <ctype.h>
12
12
+
#include <string.h>
13
13
+
#include <signal.h>
14
14
+
+#include <stdlib.h>
15
15
+
#include <sys/types.h>
16
16
+
#include <sys/socket.h>
17
17
+
#include <netinet/in.h>
18
18
+
diff --git a/src/file.c b/src/file.c
19
19
+
index f4ad48b..3714786 100644
20
20
+
--- a/src/file.c
21
21
+
+++ b/src/file.c
22
22
+
@@ -1,4 +1,6 @@
23
23
+
#include "includes/file.h"
24
24
+
+#include <string.h>
25
25
+
+#include <stdlib.h>
26
26
+
int file_prep()
27
27
+
{
28
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
19
+
patches = [ ./implicit-function-declaration.patch ];
20
20
+
19
21
nativeBuildInputs = [ autoreconfHook ];
20
22
21
23
env.NIX_CFLAGS_COMPILE = toString [ "-fcommon" ];
22
24
23
23
-
meta = with lib; {
25
25
+
meta = {
24
26
description = "Deepmagic Information Gathering Tool";
25
27
mainProgram = "dmitry";
26
28
homepage = "https://github.com/jaygreig86/dmitry";
27
27
-
maintainers = with maintainers; [ d3vil0p3r ];
28
28
-
platforms = platforms.linux;
29
29
-
license = licenses.gpl2Plus;
29
29
+
maintainers = with lib.maintainers; [ d3vil0p3r ];
30
30
+
platforms = lib.platforms.linux;
31
31
+
license = lib.licenses.gpl2Plus;
30
32
};
31
33
}