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