guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/03: gnu: patchelf: Update argument phase.


From: Efraim Flashner
Subject: 02/03: gnu: patchelf: Update argument phase.
Date: Mon, 19 Mar 2018 15:48:29 -0400 (EDT)

efraim pushed a commit to branch staging
in repository guix.

commit c1d1cd817c7ab8d99e962e286c207943765a8e8f
Author: Efraim Flashner <address@hidden>
Date:   Mon Mar 19 21:43:09 2018 +0200

    gnu: patchelf: Update argument phase.
    
    * gnu/packages/elf.scm (patchelf)[arguments]: Use 'modify-phases'
    syntax.  Replace 'system*' with 'invoke'.
---
 gnu/packages/elf.scm | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/elf.scm b/gnu/packages/elf.scm
index 8329637..350cd2a 100644
--- a/gnu/packages/elf.scm
+++ b/gnu/packages/elf.scm
@@ -128,14 +128,12 @@ Executable and Linkable Format (@dfn{ELF}).  This 
includes @command{ld},
          '()))
     (arguments
      (if (target-arm32?)
-         `(#:phases (alist-cons-after
-                     'unpack 'patch/rework-for-arm
-                     (lambda* (#:key inputs #:allow-other-keys)
-                       (let ((patch-file
-                              (assoc-ref inputs "patch/rework-for-arm")))
-                         (zero? (system* "patch" "--force" "-p1"
-                                         "--input" patch-file))))
-                     %standard-phases))
+         `(#:phases
+           (modify-phases %standard-phases
+             (add-after 'unpack 'patch/rework-for-arm
+               (lambda* (#:key inputs #:allow-other-keys)
+                 (let ((patch-file (assoc-ref inputs "patch/rework-for-arm")))
+                   (invoke "patch" "--force" "-p1" "--input" patch-file))))))
          '()))
 
     (home-page "https://nixos.org/patchelf.html";)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]