From 731aeffaf7815a429a3b3aa6ea12e73a1784394a Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Tue, 28 Mar 2023 20:57:26 +0000 Subject: [PATCH] aeolus: use aeolus-stops Without them it does not play. --- pkgs/applications/audio/aeolus/default.nix | 24 ++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/audio/aeolus/default.nix b/pkgs/applications/audio/aeolus/default.nix index df61d3896155..cca58da4f99e 100644 --- a/pkgs/applications/audio/aeolus/default.nix +++ b/pkgs/applications/audio/aeolus/default.nix @@ -1,5 +1,5 @@ { lib, stdenv, fetchurl, libclthreads, zita-alsa-pcmi, alsa-lib, libjack2 -, libclxclient, libX11, libXft, readline +, libclxclient, libX11, libXft, readline, aeolus-stops }: stdenv.mkDerivation rec { @@ -16,17 +16,29 @@ stdenv.mkDerivation rec { libX11 libXft readline ]; - patchPhase = ''sed "s@ldconfig.*@@" -i source/Makefile''; + postPatch = '' + sed -i source/Makefile -e /ldconfig/d + substituteInPlace source/main.cc --replace /etc/ "$out/etc/" + ''; preBuild = "cd source"; makeFlags = [ "DESTDIR=" "PREFIX=$(out)" ]; - meta = { + postInstall = let cfg = '' + # Aeolus system wide default options + # Ignored if ~/.aeolusrc with local options exists + -u -S ${aeolus-stops}/${aeolus-stops.subdir} + ''; in '' + mkdir -p $out/etc + echo -n "${cfg}" > $out/etc/aeolus.conf + ''; + + meta = with lib; { description = "Synthetized (not sampled) pipe organ emulator"; homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/aeolus/index.html"; - license = lib.licenses.lgpl3; - platforms = lib.platforms.linux; - maintainers = [ lib.maintainers.nico202 ]; + license = licenses.lgpl3; + platforms = platforms.linux; + maintainers = with maintainers; [ nico202 orivej ]; }; }