2019-02-03 15:33:31 +00:00
|
|
|
{ config, stdenv, fetchurl, zlib, pkgconfig, mpg123, libogg, libvorbis, portaudio, libsndfile, flac
|
|
|
|
, usePulseAudio ? config.pulseaudio or false, libpulseaudio }:
|
2016-10-08 21:08:18 +00:00
|
|
|
|
|
|
|
let
|
2020-10-27 09:53:31 +00:00
|
|
|
version = "0.5.3";
|
2019-08-13 21:52:01 +00:00
|
|
|
in stdenv.mkDerivation {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "openmpt123";
|
|
|
|
inherit version;
|
2019-01-12 07:52:37 +00:00
|
|
|
|
2016-10-08 21:08:18 +00:00
|
|
|
src = fetchurl {
|
2019-01-12 07:52:37 +00:00
|
|
|
url = "https://lib.openmpt.org/files/libopenmpt/src/libopenmpt-${version}+release.autotools.tar.gz";
|
2020-10-27 09:53:31 +00:00
|
|
|
sha256 = "1f155yf5v57dwhzb7z0kh67lckr3yq4x8040dm54qgbxw582la77";
|
2016-10-08 21:08:18 +00:00
|
|
|
};
|
2019-01-12 07:52:37 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = true;
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2019-01-12 07:52:37 +00:00
|
|
|
buildInputs = [ zlib mpg123 libogg libvorbis portaudio libsndfile flac ]
|
|
|
|
++ stdenv.lib.optional usePulseAudio libpulseaudio;
|
|
|
|
|
2019-11-20 09:17:54 +00:00
|
|
|
configureFlags = stdenv.lib.optional (!usePulseAudio) "--without-pulseaudio";
|
2016-10-08 21:08:18 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A cross-platform command-line based module file player";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://lib.openmpt.org/libopenmpt/";
|
2016-10-08 21:08:18 +00:00
|
|
|
license = licenses.bsd3;
|
2019-01-12 07:52:37 +00:00
|
|
|
maintainers = with maintainers; [ gnidorah ];
|
|
|
|
platforms = platforms.linux;
|
2016-10-08 21:08:18 +00:00
|
|
|
};
|
|
|
|
}
|