d9e13ed064
GitOrigin-RevId: a930f7da84786807bb105df40e76b541604c3e72
32 lines
1 KiB
Nix
32 lines
1 KiB
Nix
{ config, lib, stdenv, fetchurl, zlib, pkg-config, mpg123, libogg, libvorbis, portaudio, libsndfile, flac
|
|
, usePulseAudio ? config.pulseaudio or stdenv.isLinux, libpulseaudio }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libopenmpt";
|
|
version = "0.5.11";
|
|
|
|
outputs = [ "out" "lib" "dev" ];
|
|
|
|
src = fetchurl {
|
|
url = "https://lib.openmpt.org/files/libopenmpt/src/libopenmpt-${version}+release.autotools.tar.gz";
|
|
sha256 = "1c54lldr2imjzhlhq5lvwhj7d5794xm97cby9pznr5wdjjay0sa4";
|
|
};
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ zlib mpg123 libogg libvorbis portaudio libsndfile flac ]
|
|
++ lib.optional usePulseAudio libpulseaudio;
|
|
|
|
configureFlags = lib.optional (!usePulseAudio) "--without-pulseaudio";
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "A cross-platform command-line based module file player";
|
|
homepage = "https://lib.openmpt.org/libopenmpt/";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ OPNA2608 ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|