guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/03: gnu: dtc: Build python bindings.


From: Efraim Flashner
Subject: 02/03: gnu: dtc: Build python bindings.
Date: Mon, 6 Nov 2017 13:39:57 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit 12c613b54868d4b0894dc69063f3962f252ba6e8
Author: Efraim Flashner <address@hidden>
Date:   Mon Nov 6 20:34:31 2017 +0200

    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.
---
 gnu/packages/bootloaders.scm | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/bootloaders.scm b/gnu/packages/bootloaders.scm
index 4ba7a93..62282c9 100644
--- a/gnu/packages/bootloaders.scm
+++ b/gnu/packages/bootloaders.scm
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]