2021-06-20 15:02:46 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, alsa-lib, freepats }:
|
2013-05-18 19:13:32 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-06-20 15:02:46 +01:00
|
|
|
pname = "wildmidi";
|
|
|
|
version = "0.4.4";
|
2013-05-18 19:13:32 +01:00
|
|
|
|
2021-06-20 15:02:46 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Mindwerks";
|
|
|
|
repo = "wildmidi";
|
|
|
|
rev = "${pname}-${version}";
|
|
|
|
sha256 = "08fbbsvw6pkwwqarjwcvdp8mq4zn5sgahf025hynwc6rvf4sp167";
|
2013-05-18 19:13:32 +01:00
|
|
|
};
|
|
|
|
|
2014-04-09 08:47:18 +01:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2013-05-18 19:13:32 +01:00
|
|
|
|
2021-06-10 03:57:09 +01:00
|
|
|
buildInputs = [ alsa-lib stdenv.cc.libc/*couldn't find libm*/ ];
|
2013-05-18 19:13:32 +01:00
|
|
|
|
2014-04-09 08:47:18 +01:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace CMakeLists.txt \
|
|
|
|
--replace /etc/wildmidi $out/etc
|
|
|
|
'';
|
|
|
|
|
2013-05-18 19:13:32 +01:00
|
|
|
postInstall = ''
|
|
|
|
mkdir "$out"/etc
|
|
|
|
echo "dir ${freepats}" > "$out"/etc/wildmidi.cfg
|
|
|
|
echo "source ${freepats}/freepats.cfg" >> "$out"/etc/wildmidi.cfg
|
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2013-05-18 19:13:32 +01: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.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://wildmidi.sourceforge.net/";
|
2013-05-18 19:13:32 +01:00
|
|
|
# The library is LGPLv3, the wildmidi executable is GPLv3
|
2013-05-20 18:33:18 +01:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = platforms.linux;
|
2014-01-02 16:53:57 +00:00
|
|
|
maintainers = [ maintainers.bjornfor ];
|
2013-05-18 19:13:32 +01:00
|
|
|
};
|
|
|
|
}
|