From f5f869f0db3736466d8d813b1d7070b15396f71e Mon Sep 17 00:00:00 2001 From: Rampoina Date: Sat, 25 Mar 2023 17:11:13 +0100 Subject: [PATCH] aeolus: Add stops file to fix the UI The stops file was missing, this resulted in broken empty UI --- pkgs/applications/audio/aeolus/default.nix | 23 +++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/audio/aeolus/default.nix b/pkgs/applications/audio/aeolus/default.nix index df61d38961556..77dcc37326634 100644 --- a/pkgs/applications/audio/aeolus/default.nix +++ b/pkgs/applications/audio/aeolus/default.nix @@ -4,6 +4,7 @@ stdenv.mkDerivation rec { pname = "aeolus"; + stopsVersion = "0.4.0"; version = "0.10.4"; src = fetchurl { @@ -11,17 +12,37 @@ stdenv.mkDerivation rec { sha256 = "sha256-J9xrd/N4LrvGgi89Yj4ob4ZPUAEchrXJJQ+YVJ29Qhk="; }; + stops = fetchurl { + url = "https://kokkinizita.linuxaudio.org/linuxaudio/downloads/stops-${stopsVersion}.tar.bz2"; + sha256 = "0e79a0b8e006cb0f67bfcf1e9097db0b4e10c1bb30e6d5c401a29e882411fcb0"; + }; + buildInputs = [ libclthreads zita-alsa-pcmi alsa-lib libjack2 libclxclient libX11 libXft readline ]; - patchPhase = ''sed "s@ldconfig.*@@" -i source/Makefile''; + patchPhase = '' + sed "s@ldconfig.*@@" -i source/Makefile + sed -i 's@/etc@'$out'/etc@' -i source/main.cc + ''; preBuild = "cd source"; makeFlags = [ "DESTDIR=" "PREFIX=$(out)" ]; + + postInstall = '' + mkdir -p $out/share/stops + tar xavf ${stops} --strip-components=1 -C $out/share/stops/ + mkdir $out/etc + cat <$out/etc/aeolus.conf + # Aeolus system wide default options + # use ~/.aeolusrc for local options + -u -S $out/share/stops/ + EOF + ''; + meta = { description = "Synthetized (not sampled) pipe organ emulator"; homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/aeolus/index.html";