1 { lib, stdenv, fetchurl, texinfo, alsaLib, libpulseaudio, CoreAudio }:
4 inherit (lib) optional optionalString;
6 in stdenv.mkDerivation rec {
7 name = "libmikmod-3.3.11.1";
9 url = "mirror://sourceforge/mikmod/${name}.tar.gz";
10 sha256 = "06bdnhb0l81srdzg6gn2v2ydhhaazza7rshrcj3q8dpqr3gn97dd";
13 buildInputs = [ texinfo ]
14 ++ optional stdenv.isLinux alsaLib
15 ++ optional stdenv.isDarwin CoreAudio;
16 propagatedBuildInputs =
17 optional stdenv.isLinux libpulseaudio;
19 NIX_LDFLAGS = optionalString stdenv.isLinux "-lasound";
22 description = "A library for playing tracker music module files";
23 homepage = "https://mikmod.shlomifish.org/";
24 license = licenses.lgpl2Plus;
25 maintainers = with maintainers; [ astsmtl lovek323 ];
26 platforms = platforms.unix;
29 A library for playing tracker music module files supporting many formats,
30 including MOD, S3M, IT and XM.