gnu: alsa-utils: Use 'modify-phases'.

* gnu/packages/linux.scm (alsa-utils)[arguments]: Use 'modify-phases'
syntax.
This commit is contained in:
Efraim Flashner 2016-08-31 08:37:16 +03:00
parent 43043f23f5
commit 4916514503
No known key found for this signature in database
GPG Key ID: F4C1D3917EACEE93
1 changed files with 9 additions and 8 deletions

View File

@ -885,14 +885,15 @@ MIDI functionality to the Linux-based operating system.")
(string-append "--with-udev-rules-dir=" (string-append "--with-udev-rules-dir="
(assoc-ref %outputs "out") (assoc-ref %outputs "out")
"/lib/udev/rules.d")) "/lib/udev/rules.d"))
#:phases (alist-cons-before #:phases
'install 'pre-install (modify-phases %standard-phases
(lambda _ (add-before
;; Don't try to mkdir /var/lib/alsa. 'install 'pre-install
(substitute* "Makefile" (lambda _
(("\\$\\(MKDIR_P\\) .*ASOUND_STATE_DIR.*") ;; Don't try to mkdir /var/lib/alsa.
"true\n"))) (substitute* "Makefile"
%standard-phases))) (("\\$\\(MKDIR_P\\) .*ASOUND_STATE_DIR.*")
"true\n")))))))
(inputs (inputs
`(("libsamplerate" ,libsamplerate) `(("libsamplerate" ,libsamplerate)
("ncurses" ,ncurses) ("ncurses" ,ncurses)