nixpkgs-suyu/pkgs/tools/misc/timidity/default.nix

40 lines
1.2 KiB
Nix
Raw Normal View History

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