2021-01-19 06:50:56 +00:00
|
|
|
{ config, lib, stdenv, fetchurl, zlib, pkg-config, mpg123, libogg, libvorbis, portaudio, libsndfile, flac
|
2019-02-03 15:33:31 +00:00
|
|
|
, usePulseAudio ? config.pulseaudio or false, libpulseaudio }:
|
2016-10-08 22:08:18 +01:00
|
|
|
|
2021-05-29 02:59:43 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "openmpt123";
|
2021-07-06 09:43:49 +01:00
|
|
|
version = "0.5.10";
|
2019-01-12 07:52:37 +00:00
|
|
|
|
2016-10-08 22:08:18 +01: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";
|
2021-07-06 09:43:49 +01:00
|
|
|
sha256 = "sha256-Waj6KNi432nLf6WXK9+TEIHatOHhFWxpoaU7ZcK+n/o=";
|
2016-10-08 22:08:18 +01:00
|
|
|
};
|
2019-01-12 07:52:37 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2019-01-12 07:52:37 +00:00
|
|
|
buildInputs = [ zlib mpg123 libogg libvorbis portaudio libsndfile flac ]
|
2021-01-15 13:21:58 +00:00
|
|
|
++ lib.optional usePulseAudio libpulseaudio;
|
2019-01-12 07:52:37 +00:00
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
configureFlags = lib.optional (!usePulseAudio) "--without-pulseaudio";
|
2016-10-08 22:08:18 +01:00
|
|
|
|
2021-05-29 02:59:43 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-10-08 22:08:18 +01:00
|
|
|
description = "A cross-platform command-line based module file player";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://lib.openmpt.org/libopenmpt/";
|
2016-10-08 22:08:18 +01:00
|
|
|
license = licenses.bsd3;
|
2021-05-29 02:59:43 +01:00
|
|
|
maintainers = with maintainers; [ OPNA2608 ];
|
|
|
|
platforms = platforms.unix;
|
2016-10-08 22:08:18 +01:00
|
|
|
};
|
|
|
|
}
|