-
Notifications
You must be signed in to change notification settings - Fork 0
/
aegisub.scm
32 lines (31 loc) · 1.09 KB
/
aegisub.scm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
(define-module (aegisub)
#:use-module (guix utils)
#:use-module (srfi srfi-1)
#:use-module (guix packages)
#:use-module (gnu packages video)
#:use-module (gnu packages linux))
(define-public aegisub-custom
(package
(inherit aegisub)
(inputs
`(;; remove 'alsa-lib' from the inputs
,@(fold alist-delete
(package-inputs aegisub)
(list "alsa-lib"))
;; Add a custom build of alsa-lib which refernces the
;; correct /gnu/store-path of alsa-plugins:pulseaudio
("alsa-lib"
,(package
(inherit alsa-lib)
(arguments
(substitute-keyword-arguments
(package-arguments alsa-lib)
((#:configure-flags flags)
`(cons (string-append
"--with-plugindir="
(assoc-ref %build-inputs "alsa-plugins:pulseaudio")
"/lib/alsa-lib") ,flags))))
(inputs
;; Add alsa-plugins:pulseaudio as an input to alsa-lib itself
`(("alsa-plugins:pulseaudio" ,alsa-plugins "pulseaudio")
,@(package-inputs alsa-lib)))))))))