linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / wildmidi / default.nix
blob880823a84732bb2a07f96666e6169fd078947b64
1 { lib, stdenv, fetchurl, cmake, alsaLib, freepats }:
3 stdenv.mkDerivation rec {
4   name = "wildmidi-0.4.3";
6   src = fetchurl {
7     url = "https://github.com/Mindwerks/wildmidi/archive/${name}.tar.gz";
8     sha256 = "1igkxv4axnqap59d8pjgqj94x0khn3fdd2hq6wdvkd2v8nb5m3j9";
9   };
11   nativeBuildInputs = [ cmake ];
13   buildInputs = [ alsaLib stdenv.cc.libc/*couldn't find libm*/ ];
15   preConfigure = ''
16     substituteInPlace CMakeLists.txt \
17       --replace /etc/wildmidi $out/etc
18   '';
20   postInstall = ''
21     mkdir "$out"/etc
22     echo "dir ${freepats}" > "$out"/etc/wildmidi.cfg
23     echo "source ${freepats}/freepats.cfg" >> "$out"/etc/wildmidi.cfg
24   '';
26   meta = with lib; {
27     description = "Software MIDI player and library";
28     longDescription = ''
29       WildMIDI is a simple software midi player which has a core softsynth
30       library that can be use with other applications.
31     '';
32     homepage = "http://wildmidi.sourceforge.net/";
33     # The library is LGPLv3, the wildmidi executable is GPLv3
34     license = licenses.lgpl3;
35     platforms = platforms.linux;
36     maintainers = [ maintainers.bjornfor ];
37   };