From 77483d6b61ca7a706acb07fd9e7b6ee269a93562 Mon Sep 17 00:00:00 2001 From: Xinglu Chen Date: Mon, 8 Nov 2021 11:02:06 +0100 Subject: gnu: perl-inline-c: Patch paths to ‘make’. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/perl.scm (perl-inline-c)[arguments]<#:phases>{patch-paths}: New phase. Signed-off-by: Ludovic Courtès --- gnu/packages/perl.scm | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'gnu/packages/perl.scm') diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index 838e942cca..5973805a75 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -5399,6 +5399,17 @@ for immediate access from Perl.") (base32 "1b3sr39813di3j1kwbgn1xq2z726rhjjdw809ydzgmshj26jb1gi")))) (build-system perl-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-paths + (lambda* (#:key inputs #:allow-other-keys) + (let ((make (assoc-ref inputs "make"))) + (substitute* "lib/Inline/C.pm" + (("'\"make\"'") + (string-append "'\"" make "/bin/make\"'")) + (("'\"make install\"'") + (string-append "'\"" make "/bin/make install\"'"))))))))) (native-inputs `(("perl-file-copy-recursive" ,perl-file-copy-recursive) ("perl-file-sharedir-install" ,perl-file-sharedir-install) -- cgit v1.2.3