tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
om4: fix build on GCC 14
Petr Zahradnik
10 months ago
bf92e7b7
ee4dd4eb
+24
-5
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
om
om4
include-exit.patch
package.nix
+14
pkgs/by-name/om/om4/include-exit.patch
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
Index: a/parser.y
2
+
===================================================================
3
+
--- a/parser.y
4
+
+++ a/parser.y
5
+
@@ -16,8 +16,9 @@
6
+
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
7
+
*/
8
+
#include <math.h>
9
+
#include <stdint.h>
10
+
+#include <stdlib.h>
11
+
#define YYSTYPE int32_t
12
+
extern int32_t end_result;
13
+
extern int yylex(void);
14
+
extern int yyerror(const char *);
+10
-5
pkgs/by-name/om/om4/package.nix
···
13
src = fetchFromGitHub {
14
owner = "ibara";
15
repo = "m4";
16
-
rev = "${pname}-${version}";
17
-
sha256 = "04h76hxwb5rs3ylkw1dv8k0kmkzl84ccqlwdwxb6i0x57rrqbgzx";
18
};
19
0
0
0
0
0
20
strictDeps = true;
21
nativeBuildInputs = [
22
bison
···
25
26
configureFlags = [ "--enable-m4" ];
27
28
-
meta = with lib; {
29
description = "Portable OpenBSD m4 macro processor";
30
homepage = "https://github.com/ibara/m4";
31
-
license = with licenses; [
32
bsd2
33
bsd3
34
isc
35
publicDomain
36
];
37
mainProgram = "m4";
38
-
platforms = platforms.unix;
39
maintainers = [ ];
40
};
41
}
···
13
src = fetchFromGitHub {
14
owner = "ibara";
15
repo = "m4";
16
+
tag = "om4-${version}";
17
+
hash = "sha256-/b+Fcz6lg2hW541TzBhB9M86wUS7BT6pHzqXxTs0BxI=";
18
};
19
20
+
patches = [
21
+
# parser.y:51:25: error: implicit declaration of function 'exit' []
22
+
./include-exit.patch
23
+
];
24
+
25
strictDeps = true;
26
nativeBuildInputs = [
27
bison
···
30
31
configureFlags = [ "--enable-m4" ];
32
33
+
meta = {
34
description = "Portable OpenBSD m4 macro processor";
35
homepage = "https://github.com/ibara/m4";
36
+
license = with lib.licenses; [
37
bsd2
38
bsd3
39
isc
40
publicDomain
41
];
42
mainProgram = "m4";
43
+
platforms = lib.platforms.unix;
44
maintainers = [ ];
45
};
46
}