tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
openalSoft: 1.21.1 -> 1.22.0
Mihai Fufezan
3 years ago
8410b41a
8e9dc9e6
+16
-10
2 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
openal-soft
default.nix
search-out.patch
+14
-8
pkgs/development/libraries/openal-soft/default.nix
···
1
1
-
{ lib, stdenv, fetchFromGitHub, cmake
1
1
+
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
2
2
, alsaSupport ? !stdenv.isDarwin, alsa-lib
3
3
+
, dbusSupport ? !stdenv.isDarwin, dbus
4
4
+
, pipewireSupport ? !stdenv.isDarwin, pipewire
3
5
, pulseSupport ? !stdenv.isDarwin, libpulseaudio
4
6
, CoreServices, AudioUnit, AudioToolbox
5
7
}:
6
8
7
9
stdenv.mkDerivation rec {
8
10
pname = "openal-soft";
9
9
-
version = "1.21.1";
11
11
+
version = "1.22.0";
10
12
11
13
src = fetchFromGitHub {
12
14
owner = "kcat";
13
15
repo = "openal-soft";
14
16
rev = version;
15
15
-
sha256 = "sha256-rgc6kjXaZb6sCR+e9Gu7BEEHIiCHMygpLIeSqgWkuAg=";
17
17
+
sha256 = "sha256-Y2KhPkwtG6tBzUhSqwV2DVnOjZwxPihidLKahjaIvyU=";
16
18
};
17
19
18
20
# this will make it find its own data files (e.g. HRTF profiles)
19
21
# without any other configuration
20
22
patches = [ ./search-out.patch ];
21
23
postPatch = ''
22
22
-
substituteInPlace alc/helpers.cpp \
24
24
+
substituteInPlace core/helpers.cpp \
23
25
--replace "@OUT@" $out
24
26
'';
25
27
26
28
strictDeps = true;
27
29
28
28
-
nativeBuildInputs = [ cmake ];
30
30
+
nativeBuildInputs = [ cmake pkg-config ];
29
31
30
32
buildInputs = lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) stdenv.cc.libc
31
33
++ lib.optional alsaSupport alsa-lib
34
34
+
++ lib.optional dbusSupport dbus
35
35
+
++ lib.optional pipewireSupport pipewire
32
36
++ lib.optional pulseSupport libpulseaudio
33
37
++ lib.optionals stdenv.isDarwin [ CoreServices AudioUnit AudioToolbox ];
34
38
35
35
-
NIX_LDFLAGS = toString (
36
36
-
lib.optional alsaSupport "-lasound"
37
37
-
++ lib.optional pulseSupport "-lpulse");
39
39
+
cmakeFlags = [
40
40
+
# Automatically links dependencies without having to rely on dlopen, thus
41
41
+
# removes the need for NIX_LDFLAGS.
42
42
+
"-DALSOFT_DLOPEN=OFF"
43
43
+
];
38
44
39
45
meta = with lib; {
40
46
description = "OpenAL alternative";
+2
-2
pkgs/development/libraries/openal-soft/search-out.patch
···
1
1
diff --git a/alc/helpers.cpp b/alc/helpers.cpp
2
2
index 8c1c856..19bbc0f 100644
3
3
-
--- a/alc/helpers.cpp
4
4
-
+++ b/alc/helpers.cpp
3
3
+
--- a/core/helpers.cpp
4
4
+
+++ b/core/helpers.cpp
5
5
@@ -402,6 +402,7 @@ al::vector<std::string> SearchDataFiles(const char *ext, const char *subdir)
6
6
7
7
DirectorySearch(path.c_str(), ext, &results);