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