1 { lib, stdenv, fetchurl, cmake, alsaLib, freepats }:
3 stdenv.mkDerivation rec {
4 name = "wildmidi-0.4.3";
7 url = "https://github.com/Mindwerks/wildmidi/archive/${name}.tar.gz";
8 sha256 = "1igkxv4axnqap59d8pjgqj94x0khn3fdd2hq6wdvkd2v8nb5m3j9";
11 nativeBuildInputs = [ cmake ];
13 buildInputs = [ alsaLib stdenv.cc.libc/*couldn't find libm*/ ];
16 substituteInPlace CMakeLists.txt \
17 --replace /etc/wildmidi $out/etc
22 echo "dir ${freepats}" > "$out"/etc/wildmidi.cfg
23 echo "source ${freepats}/freepats.cfg" >> "$out"/etc/wildmidi.cfg
27 description = "Software MIDI player and library";
29 WildMIDI is a simple software midi player which has a core softsynth
30 library that can be use with other applications.
32 homepage = "http://wildmidi.sourceforge.net/";
33 # The library is LGPLv3, the wildmidi executable is GPLv3
34 license = licenses.lgpl3;
35 platforms = platforms.linux;
36 maintainers = [ maintainers.bjornfor ];