1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/audio/openmpt123/default.nix

31 lines
1,002 B
Nix
Raw Normal View History

2019-01-12 07:52:37 +00:00
{ stdenv, fetchurl, zlib, pkgconfig, mpg123, libogg, libvorbis, portaudio, libsndfile, flac
, usePulseAudio ? false, libpulseaudio }:
2016-10-08 22:08:18 +01:00
let
2019-01-12 07:52:37 +00:00
version = "0.4.1";
2016-10-08 22:08:18 +01:00
in stdenv.mkDerivation rec {
name = "openmpt123-${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";
sha256 = "1k1m1adjh4s2q9lxgkf836k5243akxrzq1hsdjhrkg4idd3pxzp4";
2016-10-08 22:08:18 +01:00
};
2019-01-12 07:52:37 +00:00
enableParallelBuilding = true;
doCheck = true;
nativeBuildInputs = [ pkgconfig ];
2019-01-12 07:52:37 +00:00
buildInputs = [ zlib mpg123 libogg libvorbis portaudio libsndfile flac ]
++ stdenv.lib.optional usePulseAudio libpulseaudio;
configureFlags = stdenv.lib.optional (!usePulseAudio) [ "--without-pulseaudio" ];
2016-10-08 22:08:18 +01:00
meta = with stdenv.lib; {
description = "A cross-platform command-line based module file player";
homepage = https://lib.openmpt.org/libopenmpt/;
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
};
}