tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
audacity: fix for darwin
Dmitry Kalinkin
4 years ago
7095591d
4f742d3e
+46
-17
3 changed files
expand all
collapse all
unified
split
pkgs
applications
audio
audacity
default.nix
development
libraries
audio
suil
default.nix
top-level
all-packages.nix
+37
-15
pkgs/applications/audio/audacity/default.nix
···
3
3
, fetchFromGitHub
4
4
, fetchpatch
5
5
, cmake
6
6
-
, wxGTK
7
6
, pkg-config
8
7
, python3
9
8
, gettext
···
18
17
, sqlite
19
18
, sratom
20
19
, suil
21
21
-
, alsa-lib
22
20
, libsndfile
23
21
, soxr
24
22
, flac
···
28
26
, libopus
29
27
, ffmpeg
30
28
, soundtouch
31
31
-
, pcre /*, portaudio - given up fighting their portaudio.patch */
29
29
+
, pcre
30
30
+
/*, portaudio - given up fighting their portaudio.patch */
32
31
, linuxHeaders
32
32
+
, alsa-lib
33
33
, at-spi2-core
34
34
, dbus
35
35
, libepoxy
···
40
40
, libsepol
41
41
, libxkbcommon
42
42
, util-linux
43
43
+
, wxGTK
44
44
+
, AppKit ? null
45
45
+
, AudioToolbox ? null
46
46
+
, AudioUnit ? null
47
47
+
, Carbon ? null
48
48
+
, Cocoa ? null
49
49
+
, CoreAudio ? null
50
50
+
, CoreAudioKit ? null
51
51
+
, CoreServices ? null
52
52
+
, wxmac
43
53
}:
44
54
45
55
# TODO
···
49
59
let
50
60
inherit (lib) optionals;
51
61
62
62
+
wxWidgets_src = fetchFromGitHub {
63
63
+
owner = "audacity";
64
64
+
repo = "wxWidgets";
65
65
+
rev = "07e7d832c7a337aedba3537b90b2c98c4d8e2985";
66
66
+
sha256 = "1mawnkcrmqj98jp0jxlnh9xkc950ca033ccb51c7035pzmi9if9a";
67
67
+
fetchSubmodules = true;
68
68
+
};
69
69
+
52
70
wxGTK' = wxGTK.overrideAttrs (oldAttrs: rec {
53
53
-
src = fetchFromGitHub {
54
54
-
owner = "audacity";
55
55
-
repo = "wxWidgets";
56
56
-
rev = "07e7d832c7a337aedba3537b90b2c98c4d8e2985";
57
57
-
sha256 = "1mawnkcrmqj98jp0jxlnh9xkc950ca033ccb51c7035pzmi9if9a";
58
58
-
fetchSubmodules = true;
59
59
-
};
71
71
+
src = wxWidgets_src;
72
72
+
});
73
73
+
74
74
+
wxmac' = wxmac.overrideAttrs (oldAttrs: rec {
75
75
+
src = wxWidgets_src;
60
76
});
61
77
62
78
in
···
88
104
89
105
postPatch = ''
90
106
touch src/RevisionIdent.h
91
91
-
107
107
+
'' + lib.optionalString stdenv.isLinux ''
92
108
substituteInPlace src/FileNames.cpp \
93
109
--replace /usr/include/linux/magic.h ${linuxHeaders}/include/linux/magic.h
94
110
'';
···
116
132
];
117
133
118
134
buildInputs = [
119
119
-
alsa-lib
120
135
expat
121
136
ffmpeg
122
137
file
···
138
153
sratom
139
154
suil
140
155
twolame
141
141
-
wxGTK'
142
142
-
wxGTK'.gtk
143
156
] ++ optionals stdenv.isLinux [
157
157
+
alsa-lib # for portaudio
144
158
at-spi2-core
145
159
dbus
146
160
libepoxy
···
151
165
libselinux
152
166
libsepol
153
167
util-linux
168
168
+
wxGTK'
169
169
+
wxGTK'.gtk
170
170
+
] ++ optionals stdenv.isDarwin [
171
171
+
wxmac'
172
172
+
AppKit
173
173
+
Cocoa
174
174
+
CoreAudioKit
175
175
+
AudioUnit AudioToolbox CoreAudio CoreServices Carbon # for portaudio
154
176
];
155
177
156
178
doCheck = false; # Test fails
···
160
182
homepage = "https://www.audacityteam.org/";
161
183
license = licenses.gpl2Plus;
162
184
maintainers = with maintainers; [ lheckemann ];
163
163
-
platforms = platforms.linux;
185
185
+
platforms = platforms.unix;
164
186
};
165
187
}
+1
-1
pkgs/development/libraries/audio/suil/default.nix
···
31
31
description = "A lightweight C library for loading and wrapping LV2 plugin UIs";
32
32
license = licenses.mit;
33
33
maintainers = with maintainers; [ goibhniu ];
34
34
-
platforms = platforms.linux;
34
34
+
platforms = platforms.unix;
35
35
};
36
36
}
+8
-1
pkgs/top-level/all-packages.nix
···
24179
24179
24180
24180
audacity-gtk2 = callPackage ../applications/audio/audacity { wxGTK = wxGTK31-gtk2; };
24181
24181
audacity-gtk3 = callPackage ../applications/audio/audacity { wxGTK = wxGTK31-gtk3; };
24182
24182
-
audacity = audacity-gtk2;
24182
24182
+
audacity =
24183
24183
+
if stdenv.isDarwin then
24184
24184
+
callPackage ../applications/audio/audacity {
24185
24185
+
inherit (darwin.apple_sdk.frameworks) AppKit AudioToolbox AudioUnit Carbon Cocoa CoreAudio CoreAudioKit CoreServices;
24186
24186
+
suil = suil-qt5;
24187
24187
+
}
24188
24188
+
else
24189
24189
+
audacity-gtk2;
24183
24190
24184
24191
audio-recorder = callPackage ../applications/audio/audio-recorder { };
24185
24192