2014-04-09 07:47:18 +00:00
|
|
|
{ stdenv, fetchurl, cmake, alsaLib, freepats }:
|
2013-05-18 18:13:32 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-01-15 07:51:09 +00:00
|
|
|
name = "wildmidi-0.4.2";
|
2013-05-18 18:13:32 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-04-09 07:47:18 +00:00
|
|
|
url = "https://github.com/Mindwerks/wildmidi/archive/${name}.tar.gz";
|
2018-01-15 07:51:09 +00:00
|
|
|
sha256 = "178hm2wh5h7apkcb1a0dyla2ia8569php8ikz62rh0g6dp5l67am";
|
2013-05-18 18:13:32 +00:00
|
|
|
};
|
|
|
|
|
2014-04-09 07:47:18 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2013-05-18 18:13:32 +00:00
|
|
|
|
2015-10-04 09:47:01 +00:00
|
|
|
buildInputs = [ alsaLib stdenv.cc.libc/*couldn't find libm*/ ];
|
2013-05-18 18:13:32 +00:00
|
|
|
|
2014-04-09 07:47:18 +00:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace CMakeLists.txt \
|
|
|
|
--replace /etc/wildmidi $out/etc
|
|
|
|
'';
|
|
|
|
|
2013-05-18 18:13:32 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir "$out"/etc
|
|
|
|
echo "dir ${freepats}" > "$out"/etc/wildmidi.cfg
|
|
|
|
echo "source ${freepats}/freepats.cfg" >> "$out"/etc/wildmidi.cfg
|
|
|
|
'';
|
|
|
|
|
2013-05-20 17:33:18 +00:00
|
|
|
meta = with stdenv.lib; {
|
2013-05-18 18:13:32 +00:00
|
|
|
description = "Software MIDI player and library";
|
|
|
|
longDescription = ''
|
|
|
|
WildMIDI is a simple software midi player which has a core softsynth
|
|
|
|
library that can be use with other applications.
|
|
|
|
'';
|
|
|
|
homepage = http://wildmidi.sourceforge.net/;
|
|
|
|
# The library is LGPLv3, the wildmidi executable is GPLv3
|
2013-05-20 17:33:18 +00:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = platforms.linux;
|
2014-01-02 16:53:57 +00:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2013-05-18 18:13:32 +00:00
|
|
|
};
|
|
|
|
}
|