gnu: modules: Avoid FHS file names in 'add.modules'.
* gnu/packages/package-management.scm (modules)[arguments]: Add 'patch-add-modules' phase.
This commit is contained in:
parent
8bcd920c71
commit
7273b66945
@ -1522,6 +1522,14 @@ from R7RS, which allows most R7RS code to run on R6RS implementations.")
|
||||
#:test-target "test"
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-before 'configure 'patch-add-modules
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let ((coreutils (assoc-ref inputs "coreutils")))
|
||||
(substitute* "script/add.modules.in"
|
||||
(("/bin/(cat|cp|rm)" _ command)
|
||||
(string-append coreutils "/bin/" command))
|
||||
(("/bin/echo")
|
||||
"echo")))))
|
||||
(add-before 'configure 'patch-scripts-for-python-3
|
||||
(lambda _
|
||||
;; Patch the script for python-3.
|
||||
|
Loading…
x
Reference in New Issue
Block a user