mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: cgit: Fix patch-absolute-file-names phase.
* gnu/packages/version-control.scm (cgit) [arguments]: Fix regexp in patch-absolute-file-names phase. Change-Id: I06c624ba23bfd0b8ca45045d1d2155c53258047e Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
parent
bafc6efe48
commit
2b04ebaa74
1 changed files with 2 additions and 2 deletions
|
@ -1148,7 +1148,7 @@ (define-public cgit
|
|||
(invoke "tar" "--strip-components=1" "-C" "git" "-xf"
|
||||
(assoc-ref inputs "git-source"))))
|
||||
(add-after 'unpack 'patch-absolute-file-names
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(define (quoted-file-name input path)
|
||||
(string-append "\"" input path "\""))
|
||||
(substitute* "ui-snapshot.c"
|
||||
|
@ -1160,7 +1160,7 @@ (define (quoted-file-name input path)
|
|||
(quoted-file-name (assoc-ref inputs "xz") "/bin/xz")))
|
||||
|
||||
(substitute* "filters/about-formatting.sh"
|
||||
(("$\\(dirname $0\\)") (string-append (assoc-ref outputs "out")
|
||||
(("\\$\\(dirname \\$0\\)") (string-append (assoc-ref outputs "out")
|
||||
"/lib/cgit/filters"))
|
||||
(("\\| tr") (string-append "| " (which "tr"))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue