[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/07: gnu: noweb: Embed store references to external binaries.
From: |
guix-commits |
Subject: |
03/07: gnu: noweb: Embed store references to external binaries. |
Date: |
Thu, 16 Jan 2020 13:54:11 -0500 (EST) |
nckx pushed a commit to branch master
in repository guix.
commit bd9f588b37a86845604fbe8506bdfe162ba578b3
Author: Tobias Geerinckx-Rice <address@hidden>
AuthorDate: Wed Jan 15 01:31:20 2020 +0100
gnu: noweb: Embed store references to external binaries.
* gnu/packages/noweb.scm (noweb)[argument]: Add ‘bind-early’ phase.
[inputs]: Add perl.
---
gnu/packages/noweb.scm | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/noweb.scm b/gnu/packages/noweb.scm
index 0a0010c..2fcd24c 100644
--- a/gnu/packages/noweb.scm
+++ b/gnu/packages/noweb.scm
@@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013 Ludovic Courtès <address@hidden>
+;;; Copyright © 2020 Tobias Geerinckx-Rice <address@hidden>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -20,7 +21,8 @@
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system gnu)
- #:use-module (guix licenses))
+ #:use-module (guix licenses)
+ #:use-module (gnu packages perl))
(define-public noweb
(package
@@ -37,6 +39,18 @@
(arguments
'(#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'bind-early
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (bin (string-append out "/bin")))
+ (substitute* (list "src/lib/nwmtime"
+ "src/shell/htmltoc")
+ (("exec perl ")
+ (format #f "exec ~a " (which "perl"))))
+ (substitute* "src/shell/noweb"
+ ((" cpif ")
+ (format #f " ~a/cpif " bin)))
+ #t)))
(add-before 'install 'pre-install
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
@@ -82,6 +96,8 @@
(string-append "TEXINPUTS=" out
"/share/texmf/tex/latex")))
#:tests? #f)) ; no tests
+ (inputs
+ `(("perl" ,perl)))
(home-page "https://www.cs.tufts.edu/~nr/noweb/")
(synopsis "Literate programming tool")
(description
- branch master updated (ffe58d1 -> ad83280), guix-commits, 2020/01/16
- 02/07: gnu: noweb: Use HTTPS home page., guix-commits, 2020/01/16
- 06/07: gnu: multipath-tools: Update to 0.8.3., guix-commits, 2020/01/16
- 04/07: gnu: noweb: Update to 2.12., guix-commits, 2020/01/16
- 07/07: gnu: global: Update to 6.6.4., guix-commits, 2020/01/16
- 05/07: gnu: mcelog: Update to 168., guix-commits, 2020/01/16
- 03/07: gnu: noweb: Embed store references to external binaries.,
guix-commits <=
- 01/07: gnu: ethtool: Update to 5.4., guix-commits, 2020/01/16