summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Enge <andreas@enge.fr>2025-08-01 14:13:47 +0200
committerAndreas Enge <andreas@enge.fr>2025-08-01 14:19:53 +0200
commit98902924efc8b63e782267a8225bf7e8d77a1eb6 (patch)
treee2c865b6c994cb0f79168702bb7dedc6d58b11cc
parent0587006ab1b5668aed0e762d40980fbe8c094470 (diff)
gnu: scsh: Fix build with gcc-14.javascript-team
* gnu/packages/shells.scm (scsh)[arguments]<#:phases>{fix-includes}: New phase. Change-Id: I98d6d09e73ef4e99cc4a67cf5ec6d6ea56e82338
-rw-r--r--gnu/packages/shells.scm11
1 files changed, 10 insertions, 1 deletions
diff --git a/gnu/packages/shells.scm b/gnu/packages/shells.scm
index a798470387..2bfa4e83af 100644
--- a/gnu/packages/shells.scm
+++ b/gnu/packages/shells.scm
@@ -684,7 +684,16 @@ use of experts and novices alike.")
#$(package-version scheme48)
"/rx")))
(delete-file-recursively "rx")
- (symlink rxpath "rx")))))))
+ (symlink rxpath "rx"))))
+ (add-after 'replace-rx 'fix-includes
+ (lambda _
+ (with-directory-excursion "c"
+ (substitute* "syscalls.c"
+ (("#include <stdlib.h>" all)
+ (string-append all "\n#include <time.h>")))
+ (substitute* "tty.c"
+ (("#include <termios.h>" all)
+ (string-append all "\n#include <pty.h>")))))))))
(inputs
(list scheme48 scheme48-rx))
(native-inputs