1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-24 19:08:30 +00:00
nixpkgs/pkgs/development/libraries/libmikmod/default.nix

34 lines
1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, texinfo, alsaLib, libpulseaudio, CoreAudio }:
2015-02-03 11:23:23 +00:00
let
inherit (stdenv.lib) optional optionals optionalString;
in stdenv.mkDerivation rec {
2017-06-20 06:20:41 +01:00
name = "libmikmod-3.3.11";
src = fetchurl {
url = "mirror://sourceforge/mikmod/${name}.tar.gz";
2017-06-20 06:20:41 +01:00
sha256 = "1smb291jr4qm2cdk3gfpmh0pr23rx3jw3fw0j1zr3b4ih7727fni";
};
2015-02-03 11:23:23 +00:00
buildInputs = [ texinfo ]
++ optionals stdenv.isLinux [ alsaLib libpulseaudio ]
++ optional stdenv.isDarwin CoreAudio;
propagatedBuildInputs =
optional stdenv.isLinux libpulseaudio;
NIX_LDFLAGS = 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.
'';
};
}