···1-{ stdenv, lib, fetchFromGitHub, cmake, pkg-config
2-, mpg123, ffmpeg, libvorbis, libao, jansson, speex
3, nix-update-script
04}:
56stdenv.mkDerivation rec {
···19 extraArgs = [ "--version-regex" "r(.*)" ];
20 };
2122- nativeBuildInputs = [ cmake pkg-config ];
0002324- buildInputs = [ mpg123 ffmpeg libvorbis libao jansson speex ];
0000000000002526 cmakeFlags = [
27- # There's no nice way to build the audacious plugin without a circular dependency
28- "-DBUILD_AUDACIOUS=OFF"
29 # It always tries to download it, no option to use the system one
30 "-DUSE_CELT=OFF"
31- ];
3233 meta = with lib; {
34 description = "A library for playback of various streamed audio formats used in video games";
···1+{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, gtk3
2+, audacious, mpg123, ffmpeg, libvorbis, libao, jansson, speex
3, nix-update-script
4+, buildAudaciousPlugin ? false # only build cli by default, pkgs.audacious-plugins sets this to enable plugin support
5}:
67stdenv.mkDerivation rec {
···20 extraArgs = [ "--version-regex" "r(.*)" ];
21 };
2223+ nativeBuildInputs = [
24+ cmake
25+ pkg-config
26+ ] ++ lib.optional buildAudaciousPlugin gtk3;
2728+ buildInputs = [
29+ mpg123
30+ ffmpeg
31+ libvorbis
32+ libao
33+ jansson
34+ speex
35+ ] ++ lib.optional buildAudaciousPlugin (audacious.override { audacious-plugins = null; });
36+37+ preConfigure = ''
38+ substituteInPlace cmake/dependencies/audacious.cmake \
39+ --replace "pkg_get_variable(AUDACIOUS_PLUGIN_DIR audacious plugin_dir)" "set(AUDACIOUS_PLUGIN_DIR \"$out/lib/audacious\")"
40+ '';
4142 cmakeFlags = [
0043 # It always tries to download it, no option to use the system one
44 "-DUSE_CELT=OFF"
45+ ] ++ lib.optional (! buildAudaciousPlugin) "-DBUILD_AUDACIOUS=OFF";
4647 meta = with lib; {
48 description = "A library for playback of various streamed audio formats used in video games";