tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
audacious: add vgmstream plugin
Walter Huf
2 years ago
100a740c
06fc8753
+26
-7
2 changed files
expand all
collapse all
unified
split
pkgs
applications
audio
audacious
plugins.nix
vgmstream
default.nix
+5
pkgs/applications/audio/audacious/plugins.nix
···
41
41
, qtmultimedia
42
42
, qtx11extras
43
43
, soxr
44
44
+
, vgmstream
44
45
, wavpack
45
46
}:
46
47
···
108
109
];
109
110
110
111
dontWrapQtApps = true;
112
112
+
113
113
+
postInstall = ''
114
114
+
ln -s ${vgmstream.override { buildAudaciousPlugin = true; }}/lib/audacious/Input/* $out/lib/audacious/Input
115
115
+
'';
111
116
112
117
meta = audacious.meta // {
113
118
description = "Plugins for Audacious music player";
+21
-7
pkgs/applications/audio/vgmstream/default.nix
···
1
1
-
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config
2
2
-
, mpg123, ffmpeg, libvorbis, libao, jansson, speex
1
1
+
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, gtk3
2
2
+
, audacious, mpg123, ffmpeg, libvorbis, libao, jansson, speex
3
3
, nix-update-script
4
4
+
, buildAudaciousPlugin ? false # only build cli by default, pkgs.audacious-plugins sets this to enable plugin support
4
5
}:
5
6
6
7
stdenv.mkDerivation rec {
···
19
20
extraArgs = [ "--version-regex" "r(.*)" ];
20
21
};
21
22
22
22
-
nativeBuildInputs = [ cmake pkg-config ];
23
23
+
nativeBuildInputs = [
24
24
+
cmake
25
25
+
pkg-config
26
26
+
] ++ lib.optional buildAudaciousPlugin gtk3;
23
27
24
24
-
buildInputs = [ mpg123 ffmpeg libvorbis libao jansson speex ];
28
28
+
buildInputs = [
29
29
+
mpg123
30
30
+
ffmpeg
31
31
+
libvorbis
32
32
+
libao
33
33
+
jansson
34
34
+
speex
35
35
+
] ++ lib.optional buildAudaciousPlugin (audacious.override { audacious-plugins = null; });
36
36
+
37
37
+
preConfigure = ''
38
38
+
substituteInPlace cmake/dependencies/audacious.cmake \
39
39
+
--replace "pkg_get_variable(AUDACIOUS_PLUGIN_DIR audacious plugin_dir)" "set(AUDACIOUS_PLUGIN_DIR \"$out/lib/audacious\")"
40
40
+
'';
25
41
26
42
cmakeFlags = [
27
27
-
# There's no nice way to build the audacious plugin without a circular dependency
28
28
-
"-DBUILD_AUDACIOUS=OFF"
29
43
# It always tries to download it, no option to use the system one
30
44
"-DUSE_CELT=OFF"
31
31
-
];
45
45
+
] ++ lib.optional (! buildAudaciousPlugin) "-DBUILD_AUDACIOUS=OFF";
32
46
33
47
meta = with lib; {
34
48
description = "A library for playback of various streamed audio formats used in video games";