···1{ mkDerivation
02, lib
3, fetchFromGitHub
4, fetchpatch
···38 qmakeFlags = [ "CONFIG+=system_rtaudio" "CONFIG+=system_rtmidi" ];
3940 postConfigure = "make qmake_all";
000000004142 meta = with lib; {
43 description = "A tracker for YM2608 (OPNA) which was used in NEC PC-8801/9801 series computers";
···1{ mkDerivation
2+, stdenv
3, lib
4, fetchFromGitHub
5, fetchpatch
···39 qmakeFlags = [ "CONFIG+=system_rtaudio" "CONFIG+=system_rtmidi" ];
4041 postConfigure = "make qmake_all";
42+43+ # installs app bundle on darwin, re-extract the binary
44+ # wrapQtAppsHook fails to wrap mach-o binaries, manually call wrapper (https://github.com/NixOS/nixpkgs/issues/102044)
45+ postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
46+ mv $out/bin/BambooTracker{.app/Contents/MacOS/BambooTracker,}
47+ rm -r $out/bin/BambooTracker.app
48+ wrapQtApp $out/bin/BambooTracker
49+ '';
5051 meta = with lib; {
52 description = "A tracker for YM2608 (OPNA) which was used in NEC PC-8801/9801 series computers";
···90 '' else ''
91 substituteInPlace src/3rdparty/chromium/base/mac/mach_port_broker.mm \
92 --replace "audit_token_to_pid(msg.trailer.msgh_audit)" "msg.trailer.msgh_audit.val[5]"
93- '')
94- + ''
95- substituteInPlace src/3rdparty/chromium/sandbox/mac/BUILD.gn \
96- --replace 'libs = [ "sandbox" ]' 'libs = [ "/usr/lib/libsandbox.1.dylib" ]'
97- '');
9899 NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [
100 # with gcc8, -Wclass-memaccess became part of -Wall and this exceeds the logging limit
···190191 buildInputs = optionals stdenv.isDarwin (with darwin; [
192 cups
0193194 # `sw_vers` is used by `src/3rdparty/chromium/build/config/mac/sdk_info.py`
195 # to get some information about the host platform.
···205 shift
206 done
207 '')
208-209- # For sandbox.h include
210- (runCommand "MacOS_SDK_sandbox.h" {} ''
211- install -Dm444 "${lib.getDev darwin.apple_sdk.sdk}"/include/sandbox.h "$out"/include/sandbox.h
212- '')
213 ]);
214-215- __impureHostDeps = optional stdenv.isDarwin "/usr/lib/libsandbox.1.dylib";
216217 dontUseNinjaBuild = true;
218 dontUseNinjaInstall = true;
···90 '' else ''
91 substituteInPlace src/3rdparty/chromium/base/mac/mach_port_broker.mm \
92 --replace "audit_token_to_pid(msg.trailer.msgh_audit)" "msg.trailer.msgh_audit.val[5]"
93+ ''));
00009495 NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [
96 # with gcc8, -Wclass-memaccess became part of -Wall and this exceeds the logging limit
···186187 buildInputs = optionals stdenv.isDarwin (with darwin; [
188 cups
189+ apple_sdk.libs.sandbox
190191 # `sw_vers` is used by `src/3rdparty/chromium/build/config/mac/sdk_info.py`
192 # to get some information about the host platform.
···202 shift
203 done
204 '')
00000205 ]);
00206207 dontUseNinjaBuild = true;
208 dontUseNinjaInstall = true;
···19 preConfigure = "cd gtk";
2021 meta = with lib; {
22- homepage = "http://www.snes9x.com";
23 description = "Super Nintendo Entertainment System (SNES) emulator";
2425 longDescription = ''
···29 includes some real gems that were only ever released in Japan.
30 '';
3132- license = licenses.lgpl2;
033 maintainers = with maintainers; [ qknight ];
34 platforms = platforms.linux;
35 };
···19 preConfigure = "cd gtk";
2021 meta = with lib; {
22+ homepage = "https://www.snes9x.com";
23 description = "Super Nintendo Entertainment System (SNES) emulator";
2425 longDescription = ''
···29 includes some real gems that were only ever released in Japan.
30 '';
3132+ # see https://github.com/snes9xgit/snes9x/blob/master/LICENSE for exact details
33+ license = licenses.unfreeRedistributable;
34 maintainers = with maintainers; [ qknight ];
35 platforms = platforms.linux;
36 };