diff options
| author | Vineet Kumar <git@vineetk.net> | 2026-01-09 00:26:22 -0500 |
|---|---|---|
| committer | Vineet Kumar <git@vineetk.net> | 2026-01-20 16:59:36 -0500 |
| commit | 14ebabb96c541e4e84451fef94c185267da16a04 (patch) | |
| tree | 8a8e81c18a8ecd0b4f24da53d1eabff71ae763ca /epistemia/packages | |
| parent | 0f7ca9a9800a39e02a0d07dd224e8d84f202916c (diff) | |
home, demiurge: switching to jack
Diffstat (limited to 'epistemia/packages')
| -rw-r--r-- | epistemia/packages/audio.scm | 67 |
1 files changed, 35 insertions, 32 deletions
diff --git a/epistemia/packages/audio.scm b/epistemia/packages/audio.scm index c43eeee..421a91a 100644 --- a/epistemia/packages/audio.scm +++ b/epistemia/packages/audio.scm | |||
| @@ -1,37 +1,40 @@ | |||
| 1 | (define-module (epistemia packages audio) | 1 | (define-module (epistemia packages audio) |
| 2 | #:use-module (guix packages) | 2 | #:use-module (guix packages) |
| 3 | #:use-module (guix utils) | 3 | #:use-module (guix download) |
| 4 | #:use-module (guix gexp) | 4 | #:use-module (guix build-system gnu) |
| 5 | #:use-module (gnu packages audio)) | 5 | #:use-module (guix licenses) |
| 6 | #:use-module (gnu packages audio) | ||
| 7 | #:use-module (gnu packages linux) | ||
| 8 | #:use-module (gnu packages pkg-config)) | ||
| 6 | 9 | ||
| 7 | (define-public dsp-ladspa | 10 | (define-public zita-ajbridge |
| 8 | (package | 11 | (package |
| 9 | (inherit dsp) | 12 | (name "zita-ajbridge") |
| 10 | (name "dsp-ladspa") | 13 | (version "0.8.4") |
| 14 | (source (origin | ||
| 15 | (method url-fetch) | ||
| 16 | (uri (string-append "https://kokkinizita.linuxaudio.org/linuxaudio/downloads/zita-ajbridge-" | ||
| 17 | version ".tar.bz2")) | ||
| 18 | (sha256 | ||
| 19 | (base32 | ||
| 20 | "0g5v0l0zmqh049mhv62n8s5bpm0yrlby7mkxxhs5qwadp8v4w9mw")))) | ||
| 21 | (build-system gnu-build-system) | ||
| 11 | (arguments | 22 | (arguments |
| 12 | (substitute-keyword-arguments (package-arguments dsp) | 23 | `(#:tests? #f ; No tests included |
| 13 | ((#:phases phases '%standard-phases) | 24 | #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")) |
| 14 | #~(modify-phases #$phases | 25 | (string-append "MANDIR=" (assoc-ref %outputs "out") "/share/man/man1")) |
| 15 | (add-before 'configure 'provide-ladspa-pc | 26 | #:phases |
| 16 | (lambda* (#:key inputs #:allow-other-keys) | 27 | (modify-phases %standard-phases |
| 17 | ;; The Guix ladspa package does not provide a .pc file, which | 28 | (delete 'configure) |
| 18 | ;; dsp's configure script strictly requires to enable the plugin. | 29 | (add-after 'unpack 'enter-source-dir |
| 19 | ;; We generate a minimal one here to satisfy the check. | 30 | (lambda _ (chdir "source") #t))))) ; No configure script, just Makefile |
| 20 | (let* ((ladspa (assoc-ref inputs "ladspa")) | 31 | (native-inputs |
| 21 | (pkg-dir "fake-pkgconfig") | 32 | (list pkg-config)) |
| 22 | (pc-file (string-append pkg-dir "/ladspa.pc"))) | 33 | (inputs |
| 23 | (mkdir pkg-dir) | 34 | (list alsa-lib jack-2 zita-alsa-pcmi zita-resampler)) |
| 24 | (with-output-to-file pc-file | 35 | (home-page "https://kokkinizita.linuxaudio.org/linuxaudio/zita-ajbridge.html") |
| 25 | (lambda _ | 36 | (synopsis "Bridge ALSA devices into JACK") |
| 26 | (format #t "prefix=~a | 37 | (description "zita-ajbridge provides two applications, zita-a2j and zita-j2a. |
| 27 | includedir=${prefix}/include | 38 | They allow using an ALSA device as a JACK client, with high-quality resampling.") |
| 28 | Name: ladspa | 39 | (license gpl3+))) |
| 29 | Description: LADSPA SDK | 40 | |
| 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") "")))))))))))) | ||
