nixpkgs/pkgs/development/libraries/wildmidi/default.nix
Bjørn Forsman b13230ce24 wildmidi: 0.3.9 -> 0.4.2
0.4.2 fixes the following CVEs:
CVE-2017-11661
CVE-2017-11662
CVE-2017-11663
CVE-2017-11664

Fixes #33877.
2018-01-15 08:53:43 +01:00

39 lines
1.1 KiB
Nix

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