mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-04 02:19:18 -05:00
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
1 changed files with 8 additions and 0 deletions
|
@ -1522,6 +1522,14 @@ (define-public modules
|
|||
#: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…
Reference in a new issue