mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
gnu: highlight: Don't hard-code Lua version.
* gnu/packages/pretty-print.scm (highlight)[arguments]: Construct the Lua prefix programatically instead of hard-coding it.
This commit is contained in:
parent
3a5c02777d
commit
6e48fbb19a
1 changed files with 3 additions and 1 deletions
|
@ -27,6 +27,7 @@ (define-module (gnu packages pretty-print)
|
|||
#:use-module (guix download)
|
||||
#:use-module (guix build-system cmake)
|
||||
#:use-module (guix build-system gnu)
|
||||
#:use-module (guix utils)
|
||||
#:use-module (gnu packages)
|
||||
#:use-module (gnu packages ghostscript)
|
||||
#:use-module (gnu packages groff)
|
||||
|
@ -266,7 +267,8 @@ (define-public highlight
|
|||
(lambda _
|
||||
(substitute* "src/makefile"
|
||||
(("(pkg-config.*)lua" _ prefix)
|
||||
(string-append prefix "lua-5.3")))
|
||||
(string-append prefix "lua-" ,(version-major+minor
|
||||
(package-version lua)))))
|
||||
#t)))))
|
||||
(inputs
|
||||
`(("lua" ,lua)
|
||||
|
|
Loading…
Reference in a new issue