nixpkgs/pkgs/development/libraries/libmikmod/default.nix

30 lines
934 B
Nix
Raw Normal View History

{ stdenv, fetchurl, texinfo, alsaLib, pulseaudio }:
2015-02-03 12:23:23 +01:00
stdenv.mkDerivation rec {
2015-02-03 12:23:23 +01:00
name = "libmikmod-3.3.7";
src = fetchurl {
url = "mirror://sourceforge/mikmod/${name}.tar.gz";
2015-02-03 12:23:23 +01:00
sha256 = "18nrkf5l50hfg0y50yxr7bvik9f002lhn8c00nbcp6dgm5011x2c";
};
2015-02-03 12:23:23 +01:00
buildInputs = [ texinfo ]
++ stdenv.lib.optional stdenv.isLinux [ alsaLib pulseaudio ];
propagatedBuildInputs =
stdenv.lib.optional stdenv.isLinux pulseaudio;
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lasound";
meta = with stdenv.lib; {
description = "A library for playing tracker music module files";
homepage = http://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.
'';
};
}