diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2013-05-18 20:13:32 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2013-05-19 14:24:49 +0200 |
commit | 512f0874a16902ef05796d5cae5d124dfd6b0624 (patch) | |
tree | 3fbcb5d3d9c28a096f18a10210a8d414fcd84623 /pkgs/development/libraries/wildmidi | |
parent | ab7d500f36fb432760cb313782c3f5c45b90fb98 (diff) | |
download | nixpkgs-512f0874a16902ef05796d5cae5d124dfd6b0624.tar nixpkgs-512f0874a16902ef05796d5cae5d124dfd6b0624.tar.gz nixpkgs-512f0874a16902ef05796d5cae5d124dfd6b0624.tar.bz2 nixpkgs-512f0874a16902ef05796d5cae5d124dfd6b0624.tar.lz nixpkgs-512f0874a16902ef05796d5cae5d124dfd6b0624.tar.xz nixpkgs-512f0874a16902ef05796d5cae5d124dfd6b0624.tar.zst nixpkgs-512f0874a16902ef05796d5cae5d124dfd6b0624.zip |
wildmidi: new package
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.
Diffstat (limited to 'pkgs/development/libraries/wildmidi')
-rw-r--r-- | pkgs/development/libraries/wildmidi/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/libraries/wildmidi/default.nix b/pkgs/development/libraries/wildmidi/default.nix new file mode 100644 index 00000000000..0c51bd2d38b --- /dev/null +++ b/pkgs/development/libraries/wildmidi/default.nix @@ -0,0 +1,36 @@ +{ 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; + }; +} |