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 ]; }; }