2017-01-27 16:38:33 +01:00
|
|
|
{ stdenv, fetchurl, alsaLib, libjack2, ncurses, pkgconfig }:
|
2009-03-03 14:27:40 +01:00
|
|
|
|
2017-01-27 16:38:33 +01:00
|
|
|
stdenv.mkDerivation {
|
2018-11-23 07:54:46 +01:00
|
|
|
name = "timidity-2.15.0";
|
2007-09-23 18:28:56 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-11-23 07:54:46 +01:00
|
|
|
url = mirror://sourceforge/timidity/TiMidity++-2.15.0.tar.bz2;
|
|
|
|
sha256 = "1xf8n6dqzvi6nr2asags12ijbj1lwk1hgl3s27vm2szib8ww07qn";
|
2007-09-23 18:28:56 +02:00
|
|
|
};
|
|
|
|
|
2017-01-27 16:38:33 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ alsaLib libjack2 ncurses ];
|
2009-09-10 18:57:58 +02:00
|
|
|
|
2016-05-06 16:35:01 +02:00
|
|
|
configureFlags = [ "--enable-audio=oss,alsa,jack" "--enable-alsaseq" "--with-default-output=alsa" "--enable-ncurses" ];
|
2009-09-10 18:57:58 +02:00
|
|
|
|
2017-01-27 16:38:33 +01:00
|
|
|
NIX_LDFLAGS = ["-ljack -L${libjack2}/lib"];
|
2009-09-10 18:57:58 +02:00
|
|
|
|
2009-03-03 14:27:40 +01:00
|
|
|
instruments = fetchurl {
|
|
|
|
url = http://www.csee.umbc.edu/pub/midia/instruments.tar.gz;
|
|
|
|
sha256 = "0lsh9l8l5h46z0y8ybsjd4pf6c22n33jsjvapfv3rjlfnasnqw67";
|
|
|
|
};
|
2007-09-23 18:28:56 +02:00
|
|
|
|
2009-09-10 18:57:58 +02:00
|
|
|
# the instruments could be compressed (?)
|
2009-03-03 14:27:40 +01:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/timidity/;
|
|
|
|
cp ${./timidity.cfg} $out/share/timidity/timidity.cfg
|
2009-09-10 18:57:58 +02:00
|
|
|
tar --strip-components=1 -xf $instruments -C $out/share/timidity/
|
2009-03-03 14:27:40 +01:00
|
|
|
'';
|
2007-09-23 18:28:56 +02:00
|
|
|
|
2014-12-19 11:25:35 +01:00
|
|
|
meta = with stdenv.lib; {
|
2017-11-10 22:13:27 +01:00
|
|
|
homepage = https://sourceforge.net/projects/timidity/;
|
2014-12-19 11:25:35 +01:00
|
|
|
license = licenses.gpl2;
|
2009-03-03 14:27:40 +01:00
|
|
|
description = "A software MIDI renderer";
|
2014-12-19 11:25:35 +01:00
|
|
|
maintainers = [ maintainers.marcweber ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = platforms.linux;
|
2007-09-23 18:28:56 +02:00
|
|
|
};
|
2009-09-10 18:57:58 +02:00
|
|
|
}
|