forked from mirrors/nixpkgs
31 lines
1,002 B
Nix
31 lines
1,002 B
Nix
{ stdenv, fetchurl, zlib, pkgconfig, mpg123, libogg, libvorbis, portaudio, libsndfile, flac
|
|
, usePulseAudio ? false, libpulseaudio }:
|
|
|
|
let
|
|
version = "0.4.1";
|
|
in stdenv.mkDerivation rec {
|
|
name = "openmpt123-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "https://lib.openmpt.org/files/libopenmpt/src/libopenmpt-${version}+release.autotools.tar.gz";
|
|
sha256 = "1k1m1adjh4s2q9lxgkf836k5243akxrzq1hsdjhrkg4idd3pxzp4";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|