2021-06-28 23:13:55 +00:00
|
|
|
{ lib, stdenv, fetchurl, libclthreads, zita-alsa-pcmi, alsa-lib, libjack2
|
2023-04-12 12:48:02 +00:00
|
|
|
, libclxclient, libX11, libXft, readline, aeolus-stops
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "aeolus";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "0.10.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pname}-${version}.tar.bz2";
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "sha256-J9xrd/N4LrvGgi89Yj4ob4ZPUAEchrXJJQ+YVJ29Qhk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
libclthreads zita-alsa-pcmi alsa-lib libjack2 libclxclient
|
2020-04-24 23:36:52 +00:00
|
|
|
libX11 libXft readline
|
|
|
|
];
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
postPatch = ''
|
|
|
|
sed -i source/Makefile -e /ldconfig/d
|
|
|
|
substituteInPlace source/main.cc --replace /etc/ "$out/etc/"
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preBuild = "cd source";
|
|
|
|
|
|
|
|
makeFlags = [ "DESTDIR=" "PREFIX=$(out)" ];
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
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; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Synthetized (not sampled) pipe organ emulator";
|
|
|
|
homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/aeolus/index.html";
|
2023-04-12 12:48:02 +00:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ nico202 orivej ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|