From 9b912bb666de116d3a807176a7239b73ecb39790 Mon Sep 17 00:00:00 2001 From: Ashish SHUKLA Date: Sun, 27 Jul 2025 01:32:56 +0200 Subject: [PATCH] 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 --- gnu/packages/sml.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/sml.scm b/gnu/packages/sml.scm index 745fe429350..f9e5b6439a6 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