3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/openmpt123/default.nix

32 lines
1 KiB
Nix
Raw Normal View History

{ config, stdenv, fetchurl, zlib, pkgconfig, mpg123, libogg, libvorbis, portaudio, libsndfile, flac
, usePulseAudio ? config.pulseaudio or false, libpulseaudio }:
2016-10-08 22:08:18 +01:00
let
2020-04-14 10:41:31 +01:00
version = "0.4.12";
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";
2020-04-14 10:41:31 +01:00
sha256 = "0q2yf9g6hcwvr2nk3zggkscyf0np6i03q2g7fx10i2kcdr3n9k8c";
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/";
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
};
}