mirror of
git://git.savannah.gnu.org/guix.git
synced 2023-12-14 03:33:07 +01:00
gnu: mdadm: Fix cross-compilation.
* gnu/packages/linux.scm (mdadm)[arguments]: Search for coreutils in both native-inputs and inputs.
This commit is contained in:
parent
f22997b1a7
commit
7dbd3a8e3e
1 changed files with 3 additions and 2 deletions
|
@ -3503,8 +3503,9 @@ MPEG-2 and audio over Linux IEEE 1394.")
|
|||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-before 'build 'patch-program-paths
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let ((coreutils (assoc-ref inputs "coreutils")))
|
||||
(lambda* (#:key native-inputs inputs #:allow-other-keys)
|
||||
(let ((coreutils (assoc-ref (or native-inputs inputs)
|
||||
"coreutils")))
|
||||
(substitute* "udev-md-raid-arrays.rules"
|
||||
(("/usr/bin/(readlink|basename)" all program)
|
||||
(string-append coreutils "/bin/" program))))
|
||||
|
|
Loading…
Reference in a new issue