2016-08-07 16:52:01 +01:00
|
|
|
{ stdenv, fetchurl, texinfo, alsaLib, libpulseaudio, CoreAudio }:
|
2015-02-03 11:23:23 +00:00
|
|
|
|
2016-08-07 16:52:01 +01:00
|
|
|
let
|
2019-06-16 20:59:06 +01:00
|
|
|
inherit (stdenv.lib) optional optionalString;
|
2016-08-07 16:52:01 +01:00
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
2018-01-28 15:05:03 +00:00
|
|
|
name = "libmikmod-3.3.11.1";
|
2010-04-18 19:57:35 +01:00
|
|
|
src = fetchurl {
|
2015-04-17 08:37:42 +01:00
|
|
|
url = "mirror://sourceforge/mikmod/${name}.tar.gz";
|
2018-01-28 15:05:03 +00:00
|
|
|
sha256 = "06bdnhb0l81srdzg6gn2v2ydhhaazza7rshrcj3q8dpqr3gn97dd";
|
2010-04-18 19:57:35 +01:00
|
|
|
};
|
2015-02-03 11:23:23 +00:00
|
|
|
|
2015-04-17 08:37:42 +01:00
|
|
|
buildInputs = [ texinfo ]
|
2018-10-24 23:29:02 +01:00
|
|
|
++ optional stdenv.isLinux alsaLib
|
2016-08-07 16:52:01 +01:00
|
|
|
++ optional stdenv.isDarwin CoreAudio;
|
2015-04-17 08:37:42 +01:00
|
|
|
propagatedBuildInputs =
|
2016-08-07 16:52:01 +01:00
|
|
|
optional stdenv.isLinux libpulseaudio;
|
2015-04-17 08:37:42 +01:00
|
|
|
|
2016-08-07 16:52:01 +01:00
|
|
|
NIX_LDFLAGS = optionalString stdenv.isLinux "-lasound";
|
2013-07-04 05:58:32 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2010-04-18 19:57:35 +01:00
|
|
|
description = "A library for playing tracker music module files";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://mikmod.shlomifish.org/";
|
2013-07-04 05:58:32 +01:00
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
maintainers = with maintainers; [ astsmtl lovek323 ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
|
2010-04-18 19:57:35 +01:00
|
|
|
longDescription = ''
|
|
|
|
A library for playing tracker music module files supporting many formats,
|
|
|
|
including MOD, S3M, IT and XM.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|