Skip to content

Commit de759a2

Browse files
xoscope: fix build (NixOS#369718)
2 parents c8d0c2f + 1c4557c commit de759a2

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
--- a/configure
2+
+++ b/configure
3+
@@ -7054,9 +7054,10 @@
4+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5+
/* end confdefs.h. */
6+
7+
+#include <stddef.h>
8+
#include <comedilib.h>
9+
-main() {
10+
- comedi_get_cmd_generic_timed(NULL, NULL, NULL, 0, 0);
11+
+void main() {
12+
+ comedi_get_cmd_generic_timed(NULL, 0, NULL, 0, 0);
13+
}
14+
_ACEOF
15+
if ac_fn_c_try_compile "$LINENO"; then :

pkgs/by-name/xo/xoscope/package.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ stdenv.mkDerivation rec {
2020
sha256 = "0a5ycfc1qdmibvagc82r2mhv2i99m6pndy5i6ixas3j2297g6pgq";
2121
};
2222

23+
patches = [ ./fix-gcc14.patch ];
24+
2325
nativeBuildInputs = [
2426
pkg-config
2527
gnum4

0 commit comments

Comments
 (0)