me
/
guix
Archived
1
0
Fork 0

gnu: links: Use configure-flags.

* gnu/packages/web-browsers.scm (links)[arguments]: Add configure-flags
field. Adjust custom 'configure phase to use configure-flags.
Efraim Flashner 2022-05-06 14:16:10 +03:00
parent 5cf81294c0
commit 1123da369d
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 6 additions and 5 deletions

View File

@ -167,10 +167,11 @@ management, extensions such as advertisement blocker and colorful tabs.")
"1jy90k04kl7y3l8jzg5jx7fglyqzngng0964j7j67gjxy9vkanzh"))))
(build-system gnu-build-system)
(arguments
`(#:phases
`(#:configure-flags '("--enable-graphics")
#:phases
(modify-phases %standard-phases
(replace 'configure
(lambda* (#:key outputs #:allow-other-keys)
(lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
;; The tarball uses a very old version of autoconf. It doesn't
;; understand extra flags like `--enable-fast-install', so
;; we need to invoke it with just what it understands.
@ -180,9 +181,9 @@ management, extensions such as advertisement blocker and colorful tabs.")
`((setenv "CHOST" ,(%current-target-system)))
'())
(setenv "CONFIG_SHELL" (which "bash"))
(invoke "./configure"
(string-append "--prefix=" out)
"--enable-graphics")))))))
(apply invoke "./configure"
(string-append "--prefix=" out)
configure-flags)))))))
(native-inputs (list pkg-config))
(inputs `(("gpm" ,gpm)
("libevent" ,libevent)