1 { lib, stdenv, fetchFromGitHub, cmake, alsa-lib, freepats }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
10 rev = "${pname}-${version}";
11 sha256 = "08fbbsvw6pkwwqarjwcvdp8mq4zn5sgahf025hynwc6rvf4sp167";
14 nativeBuildInputs = [ cmake ];
16 buildInputs = [ alsa-lib stdenv.cc.libc/*couldn't find libm*/ ];
19 substituteInPlace CMakeLists.txt \
20 --replace /etc/wildmidi $out/etc
21 # https://github.com/Mindwerks/wildmidi/issues/236
22 substituteInPlace src/wildmidi.pc.in \
23 --replace '$'{exec_prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@ \
24 --replace '$'{exec_prefix}/@CMAKE_INSTALL_INCLUDEDIR@ @CMAKE_INSTALL_FULL_INCLUDEDIR@
29 echo "dir ${freepats}" > "$out"/etc/wildmidi.cfg
30 echo "source ${freepats}/freepats.cfg" >> "$out"/etc/wildmidi.cfg
34 description = "Software MIDI player and library";
36 WildMIDI is a simple software midi player which has a core softsynth
37 library that can be use with other applications.
39 homepage = "http://wildmidi.sourceforge.net/";
40 # The library is LGPLv3, the wildmidi executable is GPLv3
41 license = licenses.lgpl3;
42 platforms = platforms.linux;
43 maintainers = [ maintainers.bjornfor ];