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

32 lines
1 KiB
Nix
Raw Normal View History

{ config, lib, stdenv, fetchurl, zlib, pkgconfig, mpg123, libogg, libvorbis, portaudio, libsndfile, flac
, usePulseAudio ? config.pulseaudio or false, libpulseaudio }:
2016-10-08 23:08:18 +02:00
let
2020-12-02 20:01:41 +01:00
version = "0.5.4";
2019-08-13 23:52:01 +02:00
in stdenv.mkDerivation {
2019-08-13 23:52:01 +02:00
pname = "openmpt123";
inherit version;
2019-01-12 08:52:37 +01:00
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";
2020-12-02 20:01:41 +01:00
sha256 = "0h7gpjx1221jwsq3k91p8zhf1h77qaxyasakc88s3g57vawhckgk";
2016-10-08 23:08:18 +02:00
};
2019-01-12 08:52:37 +01:00
enableParallelBuilding = true;
doCheck = true;
nativeBuildInputs = [ pkgconfig ];
2019-01-12 08:52:37 +01:00
buildInputs = [ zlib mpg123 libogg libvorbis portaudio libsndfile flac ]
++ stdenv.lib.optional usePulseAudio libpulseaudio;
configureFlags = stdenv.lib.optional (!usePulseAudio) "--without-pulseaudio";
2016-10-08 23:08:18 +02:00
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;
2019-01-12 08:52:37 +01:00
maintainers = with maintainers; [ gnidorah ];
platforms = platforms.linux;
2016-10-08 23:08:18 +02:00
};
}