nixpkgs/pkgs/development/libraries/wildmidi/default.nix
Bjørn Forsman c8c9457190 wildmidi: 0.3.6 -> 0.3.8
Tested with `nox-review wip --against origin/master`. No breakage.
2015-09-27 21:29:55 +02:00

38 lines
1.1 KiB
Nix

{ stdenv, fetchurl, cmake, alsaLib, freepats }:
stdenv.mkDerivation rec {
name = "wildmidi-0.3.8";
src = fetchurl {
url = "https://github.com/Mindwerks/wildmidi/archive/${name}.tar.gz";
sha256 = "1z324wkmkf0lapfammviiyclhc7i8in2x2gvgc2r6sq69lcwbn7g";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ alsaLib ];
preConfigure = ''
substituteInPlace CMakeLists.txt \
--replace /etc/wildmidi $out/etc
'';
postInstall = ''
mkdir "$out"/etc
echo "dir ${freepats}" > "$out"/etc/wildmidi.cfg
echo "source ${freepats}/freepats.cfg" >> "$out"/etc/wildmidi.cfg
'';
meta = with stdenv.lib; {
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
license = licenses.lgpl3;
platforms = platforms.linux;
maintainers = [ maintainers.bjornfor ];
};
}