mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
512f0874a1
WildMIDI is a simple software midi player which has a core softsynth library that can be use with other applications. I have tested the wildmidi executable with a MIDI file. It works.
37 lines
1.1 KiB
Nix
37 lines
1.1 KiB
Nix
{ stdenv, fetchurl, alsaLib, freepats }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "wildmidi-0.2.3.5";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/project/wildmidi/wildmidi/${name}.tar.gz";
|
|
sha256 = "0m75753mn0rbwja180c2qk53s149wp4k35dijr2i6pa7sc12fr00";
|
|
};
|
|
|
|
# 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"
|
|
'';
|
|
|
|
buildInputs = [ alsaLib ];
|
|
|
|
postInstall = ''
|
|
mkdir "$out"/etc
|
|
echo "dir ${freepats}" > "$out"/etc/wildmidi.cfg
|
|
echo "source ${freepats}/freepats.cfg" >> "$out"/etc/wildmidi.cfg
|
|
'';
|
|
|
|
meta = {
|
|
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 = stdenv.lib.licenses.lgpl3;
|
|
};
|
|
}
|