summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorLuca Di Sera <disera.luca@gmail.com>2025-12-25 22:32:48 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-12-27 15:29:01 +0000
commit36d7c88fb449d45c018c791ac69aaf213e940f8d (patch)
treef369c7ae3dca5c2fcd41f4a114a97a95ca69438b /gnu
parent1a587bd302ab61454b9121d179d6868ab9cdf114 (diff)
gnu: lean4: Fix silent install failure
The lean4 package currently builds and installs without a visible failure, but fails to effectvely provide its output, such as the "lean" binary. This is due to the install phase of the derivation failing silently as it tries to access a bash shell using an absolute path that expects an FHS compliant system. To fix the issue, the relevant path in "src/stdlib.make.in", which is used during the install phase of the of the project, is now patched out by the package definition. * gnu/packages/lean.scm (lean4): [arguments] Add substitution for FHS path in "src/stdlib.make.in" Change-Id: Ib3db9ce1fbb46175130f9b46c58c55cd65a4a1ae Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/lean.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/packages/lean.scm b/gnu/packages/lean.scm
index 8229c7e7306..64727c8111f 100644
--- a/gnu/packages/lean.scm
+++ b/gnu/packages/lean.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2020 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2022 Pradana Aumars <paumars@courrier.dev>
;;; Copyright © 2023 Zhu Zihao <all_but_last@163.com>
+;;; Copyright © 2025 Luca Di Sera <disera.luca@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -139,6 +140,9 @@ interactive and automated theorem proving.")
(substitute* "src/lean.mk.in"
(("SHELL = /usr/bin/env bash")
"SHELL = bash"))
+ (substitute* "src/stdlib.make.in"
+ (("/usr/bin/env bash")
+ "bash"))
(setenv "SHELL" "bash -euo pipefail")))
(replace 'check
(lambda* (#:key tests? parallel-tests? #:allow-other-keys)