1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-05 20:12:52 +00:00
nixpkgs/pkgs/development/libraries/wildmidi/default.nix

39 lines
1.1 KiB
Nix
Raw Normal View History

2014-04-09 08:47:18 +01:00
{ stdenv, fetchurl, cmake, alsaLib, freepats }:
stdenv.mkDerivation rec {
name = "wildmidi-0.4.2";
src = fetchurl {
2014-04-09 08:47:18 +01:00
url = "https://github.com/Mindwerks/wildmidi/archive/${name}.tar.gz";
sha256 = "178hm2wh5h7apkcb1a0dyla2ia8569php8ikz62rh0g6dp5l67am";
};
2014-04-09 08:47:18 +01:00
nativeBuildInputs = [ cmake ];
2015-10-04 10:47:01 +01:00
buildInputs = [ alsaLib stdenv.cc.libc/*couldn't find libm*/ ];
2014-04-09 08:47:18 +01:00
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 ];
};
}