gnu: flex: Build bison-for-tests sequentially.

This is a followup to b1593c1c4f.

* gnu/packages/flex.scm (flex)[inputs](bison-for-tests): Use
'substitute-keyword-arguments' instead of overriding them altogether.
This ensures that #:parallel-build? and #:parallel-tests? are
preserved.
This commit is contained in:
Ludovic Courtès 2019-06-29 22:34:20 +02:00
parent 5cc1075a76
commit 06172df545
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2012, 2013, 2014 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2012, 2013, 2014, 2019 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
;;;
;;; This file is part of GNU Guix.
@ -22,6 +22,7 @@ (define-module (gnu packages flex)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix build-system gnu)
#:use-module (guix utils)
#:use-module (gnu packages)
#:use-module (gnu packages m4)
#:use-module (gnu packages man)
@ -47,8 +48,10 @@ (define-public flex
(let ((bison-for-tests
(package
(inherit bison)
;; Disable tests, since they require flex.
(arguments '(#:tests? #f))
(arguments
;; Disable tests, since they require flex.
(substitute-keyword-arguments (package-arguments bison)
((#:tests? _ #f) #f)))
(inputs (alist-delete "flex" (package-inputs bison))))))
`(("bison" ,bison-for-tests)
("indent" ,indent))))