nixpkgs/pkgs/applications/audio/aeolus/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, libclthreads, zita-alsa-pcmi, alsa-lib, libjack2
, libclxclient, libX11, libXft, readline, aeolus-stops
2017-05-23 00:36:59 +00:00
}:
2016-01-06 19:36:00 +00:00
stdenv.mkDerivation rec {
pname = "aeolus";
2022-07-07 15:03:06 +00:00
version = "0.10.4";
2017-05-23 00:36:59 +00:00
2016-01-06 19:36:00 +00:00
src = fetchurl {
url = "https://kokkinizita.linuxaudio.org/linuxaudio/downloads/${pname}-${version}.tar.bz2";
2022-07-07 15:03:06 +00:00
sha256 = "sha256-J9xrd/N4LrvGgi89Yj4ob4ZPUAEchrXJJQ+YVJ29Qhk=";
2016-01-06 19:36:00 +00:00
};
2017-05-23 00:36:59 +00:00
buildInputs = [
libclthreads zita-alsa-pcmi alsa-lib libjack2 libclxclient
2017-05-23 00:36:59 +00:00
libX11 libXft readline
];
2016-01-06 19:36:00 +00:00
postPatch = ''
sed -i source/Makefile -e /ldconfig/d
substituteInPlace source/main.cc --replace /etc/ "$out/etc/"
'';
2016-01-06 19:36:00 +00:00
preBuild = "cd source";
makeFlags = [ "DESTDIR=" "PREFIX=$(out)" ];
2016-01-06 19:36:00 +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; {
2016-01-06 19:36:00 +00:00
description = "Synthetized (not sampled) pipe organ emulator";
2020-03-29 10:01:55 +00:00
homepage = "http://kokkinizita.linuxaudio.org/linuxaudio/aeolus/index.html";
license = licenses.lgpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ nico202 orivej ];
2024-02-11 02:19:15 +00:00
mainProgram = "aeolus";
2016-01-06 19:36:00 +00:00
};
}