gnu: denemo: Change default preferences to use the already-present lilypond.
* gnu/packages/music.scm (denemo)[progpagated-inputs]: Move lilypond to ... [inputs]: ... here. [phases]: New phase set-lilypond.
This commit is contained in:
		
							parent
							
								
									987ad88fb6
								
							
						
					
					
						commit
						b43ec33b6d
					
				
					 1 changed files with 13 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -251,6 +251,18 @@ many input formats and provides a customisable Vi-style user interface.")
 | 
			
		|||
           ;; testsuite.
 | 
			
		||||
           (lambda _
 | 
			
		||||
             (zero? (system* "make" "-C" "tests" "check"))))
 | 
			
		||||
         (add-before 'build 'set-lilypond
 | 
			
		||||
           ;; This phase sets the default path for lilypond to its current
 | 
			
		||||
           ;; location in the store.
 | 
			
		||||
           (lambda* (#:key inputs #:allow-other-keys)
 | 
			
		||||
             (let* ((lilypond (string-append (assoc-ref inputs "lilypond")
 | 
			
		||||
                                             "/bin/lilypond")))
 | 
			
		||||
               (substitute* "src/core/prefops.c"
 | 
			
		||||
                 (("g_string_new \\(\"lilypond\"\\);")
 | 
			
		||||
                  (string-append "g_string_new (\""
 | 
			
		||||
                                 lilypond
 | 
			
		||||
                                 "\");"))))
 | 
			
		||||
             #t))
 | 
			
		||||
         (add-after 'install 'correct-filename
 | 
			
		||||
           ;; "graft-derivation/shallow" from the (guix grafts) module runs in
 | 
			
		||||
           ;; the C locale, expecting file names to be ASCII encoded. This
 | 
			
		||||
| 
						 | 
				
			
			@ -283,11 +295,10 @@ many input formats and provides a customisable Vi-style user interface.")
 | 
			
		|||
       ("libsndfile" ,libsndfile)
 | 
			
		||||
       ("libtool" ,libtool)
 | 
			
		||||
       ("libxml2" ,libxml2)
 | 
			
		||||
       ("lilypond", lilypond)
 | 
			
		||||
       ("portaudio" ,portaudio)
 | 
			
		||||
       ("portmidi" ,portmidi)
 | 
			
		||||
       ("rubberband" ,rubberband)))
 | 
			
		||||
    (propagated-inputs
 | 
			
		||||
     `(("lilypond", lilypond)))
 | 
			
		||||
    (synopsis "Graphical music notation, front-end to GNU Lilypond")
 | 
			
		||||
    (description
 | 
			
		||||
     "GNU Denemo is a music notation editor that provides a convenient
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue