summary refs log tree commit diff
path: root/gnu/packages/libtiff.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/libtiff.scm')
-rw-r--r--gnu/packages/libtiff.scm14
1 files changed, 6 insertions, 8 deletions
diff --git a/gnu/packages/libtiff.scm b/gnu/packages/libtiff.scm
index f90a2d3896..f4b72c80bc 100644
--- a/gnu/packages/libtiff.scm
+++ b/gnu/packages/libtiff.scm
@@ -47,14 +47,12 @@
                            (assoc-ref %build-inputs "libjpeg-8")
                            "/include"))
       #:phases
-      (alist-replace
-       'configure
-       (lambda* (#:key #:allow-other-keys #:rest args)
-        (let ((configure (assoc-ref %standard-phases 'configure)))
-          (substitute* "configure"
-            (("`/usr/bin/file")
-            (string-append "`" (which "file"))))
-          (apply configure args)))
+      (alist-cons-before
+       'configure 'patch-configure
+       (lambda _
+         (substitute* "configure"
+           (("`/usr/bin/file")
+            (string-append "`" (which "file")))))
       %standard-phases)))
    (synopsis "Libtiff, a library for handling TIFF files")
    (description