gnu: dtc: Build python bindings.

* gnu/packages/bootloaders.scm (dtc)[native-inputs]: Add swig.
[inputs]: Add python-2.
[arguments]: Remove 'NO_PYTHON' from make-flags, add 'SETUP_PREFIX' to
set python bindings prefix.
This commit is contained in:
Efraim Flashner 2017-11-06 20:34:31 +02:00
parent ab8757c5b1
commit 12c613b548
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 6 additions and 2 deletions

View File

@ -43,6 +43,7 @@
#:use-module (gnu packages perl)
#:use-module (gnu packages python)
#:use-module (gnu packages texinfo)
#:use-module (gnu packages swig)
#:use-module (gnu packages virtualization)
#:use-module (guix build-system gnu)
#:use-module (guix download)
@ -292,12 +293,15 @@ menu to select one of the installed operating systems.")
(build-system gnu-build-system)
(native-inputs
`(("bison" ,bison)
("flex" ,flex)))
("flex" ,flex)
("swig" ,swig)))
(inputs
`(("python-2" ,python-2)))
(arguments
`(#:make-flags
(list "CC=gcc"
(string-append "PREFIX=" (assoc-ref %outputs "out"))
"NO_PYTHON=1"
(string-append "SETUP_PREFIX=" (assoc-ref %outputs "out"))
"INSTALL=install")
#:phases
(modify-phases %standard-phases