Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
45 lines
1.3 KiB
Nix
45 lines
1.3 KiB
Nix
{ lib, stdenv, fetchurl, libclthreads, zita-alsa-pcmi, alsa-lib, libjack2
|
|
, libclxclient, libX11, libXft, readline, aeolus-stops
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "aeolus";
|
|
version = "0.10.4";
|
|
|
|
src = fetchurl {
|
|
url = "https://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pname}-${version}.tar.bz2";
|
|
sha256 = "sha256-J9xrd/N4LrvGgi89Yj4ob4ZPUAEchrXJJQ+YVJ29Qhk=";
|
|
};
|
|
|
|
buildInputs = [
|
|
libclthreads zita-alsa-pcmi alsa-lib libjack2 libclxclient
|
|
libX11 libXft readline
|
|
];
|
|
|
|
postPatch = ''
|
|
sed -i source/Makefile -e /ldconfig/d
|
|
substituteInPlace source/main.cc --replace /etc/ "$out/etc/"
|
|
'';
|
|
|
|
preBuild = "cd source";
|
|
|
|
makeFlags = [ "DESTDIR=" "PREFIX=$(out)" ];
|
|
|
|
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 = licenses.lgpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ nico202 orivej ];
|
|
mainProgram = "aeolus";
|
|
};
|
|
}
|