gnu: commencement: Micro-optimize the package graph.
This removes 2 'add-data-to-store-cache' lookups. * gnu/packages/commencement.scm (flex-boot0): Move (package (inherit …)) outside the 'propagated-inputs' field to avoid creating a new node each time the field is accessed.master
parent
5a17b9b673
commit
71d17a09ee
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2014 Andreas Enge <andreas@enge.fr>
|
;;; Copyright © 2014 Andreas Enge <andreas@enge.fr>
|
||||||
;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
|
;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
|
||||||
;;; Copyright © 2014, 2015, 2017 Mark H Weaver <mhw@netris.org>
|
;;; Copyright © 2014, 2015, 2017 Mark H Weaver <mhw@netris.org>
|
||||||
|
@ -1760,6 +1760,7 @@ exec " gcc "/bin/" program
|
||||||
|
|
||||||
(define flex-boot0
|
(define flex-boot0
|
||||||
;; This Flex is needed to build MiG as well as Linux-Libre headers.
|
;; This Flex is needed to build MiG as well as Linux-Libre headers.
|
||||||
|
(let ((m4-boot0* (package (inherit m4-boot0*))))
|
||||||
(package
|
(package
|
||||||
(inherit flex)
|
(inherit flex)
|
||||||
(native-inputs `(("bison" ,bison-boot0)))
|
(native-inputs `(("bison" ,bison-boot0)))
|
||||||
|
@ -1768,12 +1769,12 @@ exec " gcc "/bin/" program
|
||||||
;; appears twice in '%build-inputs', like when we were using
|
;; appears twice in '%build-inputs', like when we were using
|
||||||
;; 'package-with-explicit-inputs'.
|
;; 'package-with-explicit-inputs'.
|
||||||
;; TODO: Remove this hack on the next rebuild cycle.
|
;; TODO: Remove this hack on the next rebuild cycle.
|
||||||
`(("m4" ,(package (inherit m4-boot0*)))))
|
`(("m4" ,m4-boot0*)))
|
||||||
(inputs (%boot0-inputs))
|
(inputs (%boot0-inputs))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:implicit-inputs? #f
|
`(#:implicit-inputs? #f
|
||||||
#:guile ,%bootstrap-guile
|
#:guile ,%bootstrap-guile
|
||||||
#:tests? #f))))
|
#:tests? #f)))))
|
||||||
|
|
||||||
(define linux-libre-headers-boot0
|
(define linux-libre-headers-boot0
|
||||||
(mlambda ()
|
(mlambda ()
|
||||||
|
|
Reference in New Issue