nixpkgs-suyu/pkgs/applications/audio/libopenmpt/default.nix

33 lines
1 KiB
Nix
Raw Normal View History

{ config, lib, stdenv, fetchurl, zlib, pkg-config, mpg123, libogg, libvorbis, portaudio, libsndfile, flac
, usePulseAudio ? config.pulseaudio or stdenv.isLinux, libpulseaudio }:
2016-10-08 23:08:18 +02:00
stdenv.mkDerivation rec {
pname = "libopenmpt";
2021-09-08 13:01:15 +02:00
version = "0.5.11";
2019-01-12 08:52:37 +01:00
2021-09-05 02:57:48 +02:00
outputs = [ "out" "lib" "dev" ];
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-09-08 13:01:15 +02:00
sha256 = "1c54lldr2imjzhlhq5lvwhj7d5794xm97cby9pznr5wdjjay0sa4";
2016-10-08 23:08:18 +02:00
};
2019-01-12 08:52:37 +01:00
enableParallelBuilding = true;
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
doCheck = true;
meta = with lib; {
2016-10-08 23:08:18 +02:00
description = "A cross-platform command-line based module file player";
homepage = "https://lib.openmpt.org/libopenmpt/";
2016-10-08 23:08:18 +02:00
license = licenses.bsd3;
maintainers = with maintainers; [ OPNA2608 ];
platforms = platforms.unix;
2016-10-08 23:08:18 +02:00
};
}