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:
		
							parent
							
								
									ab8757c5b1
								
							
						
					
					
						commit
						12c613b548
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
					@ -43,6 +43,7 @@
 | 
				
			||||||
  #:use-module (gnu packages perl)
 | 
					  #:use-module (gnu packages perl)
 | 
				
			||||||
  #:use-module (gnu packages python)
 | 
					  #:use-module (gnu packages python)
 | 
				
			||||||
  #:use-module (gnu packages texinfo)
 | 
					  #:use-module (gnu packages texinfo)
 | 
				
			||||||
 | 
					  #:use-module (gnu packages swig)
 | 
				
			||||||
  #:use-module (gnu packages virtualization)
 | 
					  #:use-module (gnu packages virtualization)
 | 
				
			||||||
  #:use-module (guix build-system gnu)
 | 
					  #:use-module (guix build-system gnu)
 | 
				
			||||||
  #:use-module (guix download)
 | 
					  #:use-module (guix download)
 | 
				
			||||||
| 
						 | 
					@ -292,12 +293,15 @@ menu to select one of the installed operating systems.")
 | 
				
			||||||
    (build-system gnu-build-system)
 | 
					    (build-system gnu-build-system)
 | 
				
			||||||
    (native-inputs
 | 
					    (native-inputs
 | 
				
			||||||
     `(("bison" ,bison)
 | 
					     `(("bison" ,bison)
 | 
				
			||||||
       ("flex" ,flex)))
 | 
					       ("flex" ,flex)
 | 
				
			||||||
 | 
					       ("swig" ,swig)))
 | 
				
			||||||
 | 
					    (inputs
 | 
				
			||||||
 | 
					     `(("python-2" ,python-2)))
 | 
				
			||||||
    (arguments
 | 
					    (arguments
 | 
				
			||||||
     `(#:make-flags
 | 
					     `(#:make-flags
 | 
				
			||||||
       (list "CC=gcc"
 | 
					       (list "CC=gcc"
 | 
				
			||||||
             (string-append "PREFIX=" (assoc-ref %outputs "out"))
 | 
					             (string-append "PREFIX=" (assoc-ref %outputs "out"))
 | 
				
			||||||
             "NO_PYTHON=1"
 | 
					             (string-append "SETUP_PREFIX=" (assoc-ref %outputs "out"))
 | 
				
			||||||
             "INSTALL=install")
 | 
					             "INSTALL=install")
 | 
				
			||||||
       #:phases
 | 
					       #:phases
 | 
				
			||||||
       (modify-phases %standard-phases
 | 
					       (modify-phases %standard-phases
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue