gnu: laby: Fix build.
* gnu/packages/games.scm (laby)[inputs]: Add ocamlbuild. [arguments]: Add new ’allow-unsafe-strings’ phase. Rename ’setenv’ phase to the more meaningful ’set-library-path’.
This commit is contained in:
		
							parent
							
								
									0458ec2b03
								
							
						
					
					
						commit
						a8f52ad7c1
					
				
					 1 changed files with 9 additions and 2 deletions
				
			
		| 
						 | 
					@ -3542,12 +3542,19 @@ Linux / Mac OS X servers, and an auto mapper with a VT100 map display.")
 | 
				
			||||||
    (inputs
 | 
					    (inputs
 | 
				
			||||||
     `(("lablgtk" ,lablgtk)
 | 
					     `(("lablgtk" ,lablgtk)
 | 
				
			||||||
       ("ocaml" ,ocaml)
 | 
					       ("ocaml" ,ocaml)
 | 
				
			||||||
       ("ocaml-findlib" ,ocaml-findlib)))
 | 
					       ("ocaml-findlib" ,ocaml-findlib)
 | 
				
			||||||
 | 
					       ("ocamlbuild" ,ocamlbuild)))
 | 
				
			||||||
    (arguments
 | 
					    (arguments
 | 
				
			||||||
     '(#:phases
 | 
					     '(#:phases
 | 
				
			||||||
       (modify-phases %standard-phases
 | 
					       (modify-phases %standard-phases
 | 
				
			||||||
         (delete 'configure)
 | 
					         (delete 'configure)
 | 
				
			||||||
         (add-before 'build 'setenv
 | 
					         (add-before 'build 'allow-unsafe-strings
 | 
				
			||||||
 | 
					           ;; Fix a build failure with ocaml >=4.06.0.
 | 
				
			||||||
 | 
					           ;; See <https://github.com/sgimenez/laby/issues/53>.
 | 
				
			||||||
 | 
					           (lambda _
 | 
				
			||||||
 | 
					             (setenv "OCAMLPARAM" "safe-string=0,_")
 | 
				
			||||||
 | 
					             #t))
 | 
				
			||||||
 | 
					         (add-before 'build 'set-library-path
 | 
				
			||||||
           (lambda* (#:key inputs #:allow-other-keys)
 | 
					           (lambda* (#:key inputs #:allow-other-keys)
 | 
				
			||||||
             (let ((lablgtk (assoc-ref inputs "lablgtk")))
 | 
					             (let ((lablgtk (assoc-ref inputs "lablgtk")))
 | 
				
			||||||
               (setenv "LD_LIBRARY_PATH"
 | 
					               (setenv "LD_LIBRARY_PATH"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue