gnu: micropython: Don't override 'install-license-files.
* gnu/packages/python.scm (micropython)[arguments]: Prefix a new 'chdir-back phase instead of overriding 'install-license-files.
This commit is contained in:
parent
9769867272
commit
847aa3942b
|
@ -704,13 +704,10 @@ (define-public micropython
|
||||||
;; see: https://github.com/micropython/micropython/pull/4246
|
;; see: https://github.com/micropython/micropython/pull/4246
|
||||||
(substitute* "Makefile"
|
(substitute* "Makefile"
|
||||||
(("-Os") "-Os -ffp-contract=off"))))
|
(("-Os") "-Os -ffp-contract=off"))))
|
||||||
(replace 'install-license-files
|
(add-before 'install-license-files 'chdir-back
|
||||||
;; We don't build in the root directory so the file isn't found.
|
;; We don't build in the root directory so the file isn't found.
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda _
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(chdir "../..")))
|
||||||
(doc (string-append out "/share/doc/"
|
|
||||||
#$name "-" #$version "/")))
|
|
||||||
(install-file "../../LICENSE" doc))))
|
|
||||||
(delete 'configure)) ; no configure
|
(delete 'configure)) ; no configure
|
||||||
#:make-flags
|
#:make-flags
|
||||||
#~(list (string-append "PREFIX=" #$output)
|
#~(list (string-append "PREFIX=" #$output)
|
||||||
|
|
Loading…
Reference in a new issue