diff options
| author | Vineet Kumar <git@vineetk.net> | 2026-01-04 21:11:44 -0500 |
|---|---|---|
| committer | Vineet Kumar <git@vineetk.net> | 2026-01-04 21:11:44 -0500 |
| commit | 0f7ca9a9800a39e02a0d07dd224e8d84f202916c (patch) | |
| tree | 2218ed3cef95ccae165934ba5d985e33636688f8 /epistemia/packages | |
| parent | 081e1d94367fd7fc629cf16ba70f6849d0943cdd (diff) | |
demiurge: work on audio, not done yet
Diffstat (limited to 'epistemia/packages')
| -rw-r--r-- | epistemia/packages/audio.scm | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/epistemia/packages/audio.scm b/epistemia/packages/audio.scm new file mode 100644 index 0000000..c43eeee --- /dev/null +++ b/epistemia/packages/audio.scm | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | (define-module (epistemia packages audio) | ||
| 2 | #:use-module (guix packages) | ||
| 3 | #:use-module (guix utils) | ||
| 4 | #:use-module (guix gexp) | ||
| 5 | #:use-module (gnu packages audio)) | ||
| 6 | |||
| 7 | (define-public dsp-ladspa | ||
| 8 | (package | ||
| 9 | (inherit dsp) | ||
| 10 | (name "dsp-ladspa") | ||
| 11 | (arguments | ||
| 12 | (substitute-keyword-arguments (package-arguments dsp) | ||
| 13 | ((#:phases phases '%standard-phases) | ||
| 14 | #~(modify-phases #$phases | ||
| 15 | (add-before 'configure 'provide-ladspa-pc | ||
| 16 | (lambda* (#:key inputs #:allow-other-keys) | ||
| 17 | ;; The Guix ladspa package does not provide a .pc file, which | ||
| 18 | ;; dsp's configure script strictly requires to enable the plugin. | ||
| 19 | ;; We generate a minimal one here to satisfy the check. | ||
| 20 | (let* ((ladspa (assoc-ref inputs "ladspa")) | ||
| 21 | (pkg-dir "fake-pkgconfig") | ||
| 22 | (pc-file (string-append pkg-dir "/ladspa.pc"))) | ||
| 23 | (mkdir pkg-dir) | ||
| 24 | (with-output-to-file pc-file | ||
| 25 | (lambda _ | ||
| 26 | (format #t "prefix=~a | ||
| 27 | includedir=${prefix}/include | ||
| 28 | Name: ladspa | ||
| 29 | Description: LADSPA SDK | ||
| 30 | Version: 1.13 | ||
| 31 | Cflags: -I${includedir} | ||
| 32 | Libs: | ||
| 33 | " ladspa))) | ||
| 34 | ;; Add our fake pkgconfig dir to the search path | ||
| 35 | (setenv "PKG_CONFIG_PATH" | ||
| 36 | (string-append pkg-dir ":" | ||
| 37 | (or (getenv "PKG_CONFIG_PATH") "")))))))))))) | ||
