2020-04-24 23:36:52 +00:00
|
|
|
{ config, stdenv, fetchurl, zlib, pkgconfig, mpg123, libogg, libvorbis, portaudio, libsndfile, flac
|
|
|
|
, usePulseAudio ? config.pulseaudio or false, libpulseaudio }:
|
|
|
|
|
|
|
|
let
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "0.5.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
in stdenv.mkDerivation {
|
|
|
|
pname = "openmpt123";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://lib.openmpt.org/files/libopenmpt/src/libopenmpt-${version}+release.autotools.tar.gz";
|
2020-08-20 17:08:02 +00:00
|
|
|
sha256 = "1vpalfsrkbx4vyrh1qy564lr91jwdxlbjivv5gzf8zcywxasf0xa";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ zlib mpg123 libogg libvorbis portaudio libsndfile flac ]
|
|
|
|
++ stdenv.lib.optional usePulseAudio libpulseaudio;
|
|
|
|
|
|
|
|
configureFlags = stdenv.lib.optional (!usePulseAudio) "--without-pulseaudio";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A cross-platform command-line based module file player";
|
|
|
|
homepage = "https://lib.openmpt.org/libopenmpt/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ gnidorah ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|