mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-25 12:09:15 -05:00
gnu: micropython: Update to 1.12.
* gnu/packages/python.scm (micropython): Update to 1.12. [arguments]: Add phase to compile mpy-cross before compiling micropython.
This commit is contained in:
parent
170bffff55
commit
399d89b5c8
1 changed files with 8 additions and 4 deletions
|
@ -14,7 +14,7 @@
|
||||||
;;; Copyright © 2015, 2016, 2017 Leo Famulari <leo@famulari.name>
|
;;; Copyright © 2015, 2016, 2017 Leo Famulari <leo@famulari.name>
|
||||||
;;; Copyright © 2015, 2017 Ben Woodcroft <donttrustben@gmail.com>
|
;;; Copyright © 2015, 2017 Ben Woodcroft <donttrustben@gmail.com>
|
||||||
;;; Copyright © 2015, 2016 Erik Edrosa <erik.edrosa@gmail.com>
|
;;; Copyright © 2015, 2016 Erik Edrosa <erik.edrosa@gmail.com>
|
||||||
;;; Copyright © 2015, 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
|
;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
|
||||||
;;; Copyright © 2015, 2017 Kyle Meyer <kyle@kyleam.com>
|
;;; Copyright © 2015, 2017 Kyle Meyer <kyle@kyleam.com>
|
||||||
;;; Copyright © 2015, 2016 Chris Marusich <cmmarusich@gmail.com>
|
;;; Copyright © 2015, 2016 Chris Marusich <cmmarusich@gmail.com>
|
||||||
;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org>
|
;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org>
|
||||||
|
@ -589,7 +589,7 @@ (define-public python-minimal-wrapper (wrap-python3 python-minimal))
|
||||||
(define-public micropython
|
(define-public micropython
|
||||||
(package
|
(package
|
||||||
(name "micropython")
|
(name "micropython")
|
||||||
(version "1.11")
|
(version "1.12")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
|
@ -598,7 +598,7 @@ (define-public micropython
|
||||||
"/micropython-" version ".tar.gz"))
|
"/micropython-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0px3xhw16rl0l7qifq7jw1gq92wzlnhd17dmszv9m2c3wbzs9p9f"))
|
"1fl1dm2aay23hyqbarnv69qj7z2wljcvkwmvfwfac8yadcv05zcq"))
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
(snippet
|
(snippet
|
||||||
'(begin
|
'(begin
|
||||||
|
@ -612,7 +612,11 @@ (define-public micropython
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-before 'build 'prepare-build
|
(add-before 'build 'build-mpy-cross
|
||||||
|
(lambda* (#:key make-flags #:allow-other-keys)
|
||||||
|
(with-directory-excursion "mpy-cross"
|
||||||
|
(apply invoke "make" make-flags))))
|
||||||
|
(add-after 'build-mpy-cross 'prepare-build
|
||||||
(lambda _
|
(lambda _
|
||||||
(chdir "ports/unix")
|
(chdir "ports/unix")
|
||||||
;; see: https://github.com/micropython/micropython/pull/4246
|
;; see: https://github.com/micropython/micropython/pull/4246
|
||||||
|
|
Loading…
Reference in a new issue