gnu: amsynth: Find external commands.
* gnu/packages/music.scm (amsynth)[arguments]: Add a ‘patch-file-names’ phase. [inputs]: Add unzip and which.
This commit is contained in:
		
							parent
							
								
									fbda11b6dc
								
							
						
					
					
						commit
						28e2f27d5c
					
				
					 1 changed files with 14 additions and 1 deletions
				
			
		| 
						 | 
					@ -1804,6 +1804,16 @@ special variant of additive synthesis.")
 | 
				
			||||||
        (base32
 | 
					        (base32
 | 
				
			||||||
         "1882pfcmf3rqg3vd4qflzkppcv158d748i603spqjbxqi8z7x7w0"))))
 | 
					         "1882pfcmf3rqg3vd4qflzkppcv158d748i603spqjbxqi8z7x7w0"))))
 | 
				
			||||||
    (build-system gnu-build-system)
 | 
					    (build-system gnu-build-system)
 | 
				
			||||||
 | 
					    (arguments
 | 
				
			||||||
 | 
					     `(#:phases
 | 
				
			||||||
 | 
					       (modify-phases %standard-phases
 | 
				
			||||||
 | 
					         (add-after 'unpack 'patch-file-names
 | 
				
			||||||
 | 
					           (lambda _
 | 
				
			||||||
 | 
					             (substitute* "src/GUI/editor_pane.c"
 | 
				
			||||||
 | 
					               (("/usr/bin/unzip") (which "unzip")))
 | 
				
			||||||
 | 
					             (substitute* "src/GUI/GUI.cc"
 | 
				
			||||||
 | 
					               (("/usr/bin/which") (which "which")))
 | 
				
			||||||
 | 
					             #t)))))
 | 
				
			||||||
    (inputs
 | 
					    (inputs
 | 
				
			||||||
     `(("alsa-lib" ,alsa-lib)
 | 
					     `(("alsa-lib" ,alsa-lib)
 | 
				
			||||||
       ("gtk+" ,gtk+-2)
 | 
					       ("gtk+" ,gtk+-2)
 | 
				
			||||||
| 
						 | 
					@ -1811,7 +1821,10 @@ special variant of additive synthesis.")
 | 
				
			||||||
       ("jack" ,jack-1)
 | 
					       ("jack" ,jack-1)
 | 
				
			||||||
       ("lash" ,lash)
 | 
					       ("lash" ,lash)
 | 
				
			||||||
       ("libsndfile" ,libsndfile)
 | 
					       ("libsndfile" ,libsndfile)
 | 
				
			||||||
       ("lv2" ,lv2)))
 | 
					       ("lv2" ,lv2)
 | 
				
			||||||
 | 
					       ;; External commands invoked at run time.
 | 
				
			||||||
 | 
					       ("unzip" ,unzip)
 | 
				
			||||||
 | 
					       ("which" ,which)))
 | 
				
			||||||
    (native-inputs
 | 
					    (native-inputs
 | 
				
			||||||
     `(("intltool" ,intltool)
 | 
					     `(("intltool" ,intltool)
 | 
				
			||||||
       ("pkg-config" ,pkg-config)))
 | 
					       ("pkg-config" ,pkg-config)))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue