nixpkgs/pkgs/applications/audio/openmpt123/default.nix

32 lines
1019 B
Nix
Raw Normal View History

{ config, lib, stdenv, fetchurl, zlib, pkg-config, mpg123, libogg, libvorbis, portaudio, libsndfile, flac
, usePulseAudio ? config.pulseaudio or false, libpulseaudio }:
2016-10-08 22:08:18 +01:00
let
2021-03-16 13:37:23 +00:00
version = "0.5.6";
2019-08-13 22:52:01 +01:00
in stdenv.mkDerivation {
2019-08-13 22:52:01 +01:00
pname = "openmpt123";
inherit version;
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-03-16 13:37:23 +00:00
sha256 = "sha256-F96ngrM0wUb0rNlIx8Mf/dKvyJnrNH6+Ab4WBup59Lg=";
2016-10-08 22:08:18 +01:00
};
2019-01-12 07:52:37 +00:00
enableParallelBuilding = true;
doCheck = true;
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
meta = with lib; {
2016-10-08 22:08:18 +01:00
description = "A cross-platform command-line based module file player";
homepage = "https://lib.openmpt.org/libopenmpt/";
2016-10-08 22:08:18 +01:00
license = licenses.bsd3;
2019-01-12 07:52:37 +00:00
maintainers = with maintainers; [ gnidorah ];
platforms = platforms.linux;
2016-10-08 22:08:18 +01:00
};
}