diff options
author | Ludovic Courtès <ludovic.courtes@inria.fr> | 2021-07-23 17:01:38 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2021-07-23 17:02:29 +0200 |
commit | 7273b669458db959dfa87edc61f916bab91c6112 (patch) | |
tree | 4a7d2c327608a245a7ef6e6d6263d0fc27799d9f /gnu/packages/package-management.scm | |
parent | 8bcd920c71ffa3bcd1f4290e6c252cc59bc9be52 (diff) | |
download | guix-7273b669458db959dfa87edc61f916bab91c6112.tar.gz guix-7273b669458db959dfa87edc61f916bab91c6112.zip |
gnu: modules: Avoid FHS file names in 'add.modules'.
* gnu/packages/package-management.scm (modules)[arguments]: Add
'patch-add-modules' phase.
Diffstat (limited to 'gnu/packages/package-management.scm')
-rw-r--r-- | gnu/packages/package-management.scm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm index d3dc8e593b..15ff607ab0 100644 --- a/gnu/packages/package-management.scm +++ b/gnu/packages/package-management.scm @@ -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. |