wildmidi: update to 0.3.6

This commit is contained in:
宋文武 2014-04-09 15:47:18 +08:00 committed by Bjørn Forsman
parent 83044b788c
commit e9a8c8417f

View File

@ -1,22 +1,22 @@
{ stdenv, fetchurl, alsaLib, freepats }:
{ stdenv, fetchurl, cmake, alsaLib, freepats }:
stdenv.mkDerivation rec {
name = "wildmidi-0.2.3.5";
name = "wildmidi-0.3.6";
src = fetchurl {
url = "mirror://sourceforge/project/wildmidi/wildmidi/${name}.tar.gz";
sha256 = "0m75753mn0rbwja180c2qk53s149wp4k35dijr2i6pa7sc12fr00";
url = "https://github.com/Mindwerks/wildmidi/archive/${name}.tar.gz";
sha256 = "0y8r812f8h9jqlajwbzni7f23k8kfcp4wxz3jdq75z902bsmdzpf";
};
# NOTE: $out in configureFlags, like this:
# configureFlags = "--disable-werror --with-wildmidi-cfg=$out/etc/wildmidi.cfg";
# is not expanded, so use this workaround:
preConfigure = ''
configureFlags="--disable-werror --with-wildmidi-cfg=$out/etc/wildmidi.cfg"
'';
nativeBuildInputs = [ cmake ];
buildInputs = [ alsaLib ];
preConfigure = ''
substituteInPlace CMakeLists.txt \
--replace /etc/wildmidi $out/etc
'';
postInstall = ''
mkdir "$out"/etc
echo "dir ${freepats}" > "$out"/etc/wildmidi.cfg