2021-06-28 23:13:55 +00:00
|
|
|
{ lib, stdenv, fetchurl, texinfo, alsa-lib, libpulseaudio, CoreAudio }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
2021-02-05 17:12:51 +00:00
|
|
|
inherit (lib) optional optionalString;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
2022-01-13 20:06:32 +00:00
|
|
|
pname = "libmikmod";
|
|
|
|
version = "3.3.11.1";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2022-01-13 20:06:32 +00:00
|
|
|
url = "mirror://sourceforge/mikmod/libmikmod-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "06bdnhb0l81srdzg6gn2v2ydhhaazza7rshrcj3q8dpqr3gn97dd";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ texinfo ]
|
2021-06-28 23:13:55 +00:00
|
|
|
++ optional stdenv.isLinux alsa-lib
|
2020-04-24 23:36:52 +00:00
|
|
|
++ optional stdenv.isDarwin CoreAudio;
|
|
|
|
propagatedBuildInputs =
|
|
|
|
optional stdenv.isLinux libpulseaudio;
|
|
|
|
|
|
|
|
NIX_LDFLAGS = optionalString stdenv.isLinux "-lasound";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A library for playing tracker music module files";
|
|
|
|
homepage = "https://mikmod.shlomifish.org/";
|
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
maintainers = with maintainers; [ astsmtl lovek323 ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
A library for playing tracker music module files supporting many formats,
|
|
|
|
including MOD, S3M, IT and XM.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|