summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshish SHUKLA <ashish.is@lostca.se>2025-07-27 01:32:56 +0200
committerAndreas Enge <andreas@enge.fr>2025-07-27 10:55:18 +0200
commit9b912bb666de116d3a807176a7239b73ecb39790 (patch)
tree8697d543d87b74e98dc10194a2654a9f04595107
parentfe7118239d45f032d78c86f62c6b3d7119ee77e2 (diff)
gnu: polyml: Fix build.
* gnu/packages/sml.scm (polyml)[inputs]: Add motif. [arguments]<#:phases>: Add phase patch-config-h. Change-Id: Ia1972b2d4b9792875da65c682d1049c1fc2722d6 Signed-off-by: Andreas Enge <andreas@enge.fr>
-rw-r--r--gnu/packages/sml.scm8
1 files changed, 7 insertions, 1 deletions
diff --git a/gnu/packages/sml.scm b/gnu/packages/sml.scm
index 745fe42935..f9e5b6439a 100644
--- a/gnu/packages/sml.scm
+++ b/gnu/packages/sml.scm
@@ -47,13 +47,19 @@
"1s7lpnxg826r2lm2c81j9a61zwljy2ybkqwadjiwrfi0hmbczn89"))))
(build-system gnu-build-system)
(inputs
- (list gmp libffi libx11 libxt))
+ (list gmp libffi libx11 libxt motif))
(arguments
'(#:configure-flags
(list "--with-gmp"
"--with-x")
#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'patch-config-h
+ (lambda _
+ ;; courtesy: https://github.com/NixOS/nixpkgs/pull/372200
+ (call-with-port (open-file "config.h.in" "a")
+ (lambda (out)
+ (display "\n#define _Static_assert static_assert\n" out)))))
(add-after 'build 'build-compiler
(lambda* (#:key make-flags parallel-build? #:allow-other-keys)
(define flags