Merge pull request #60447 from matthewbauer/macos-10-12-fixups
Fixup from macos-10-12 branch
This commit is contained in:
commit
a3990c9f6d
@ -32,11 +32,11 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig cmake ];
|
nativeBuildInputs = [ pkgconfig cmake ];
|
||||||
|
|
||||||
buildInputs = [ glib libsndfile ]
|
buildInputs = [ glib libsndfile libpulseaudio libjack2 ]
|
||||||
++ lib.optionals (!stdenv.isDarwin) [ alsaLib libpulseaudio libjack2 ]
|
++ lib.optionals stdenv.isLinux [ alsaLib ]
|
||||||
++ lib.optionals stdenv.isDarwin [ AudioUnit CoreAudio CoreMIDI CoreServices ];
|
++ lib.optionals stdenv.isDarwin [ AudioUnit CoreAudio CoreMIDI CoreServices ];
|
||||||
|
|
||||||
cmakeFlags = lib.optional stdenv.isDarwin "-Denable-framework=off";
|
cmakeFlags = [ "-Denable-framework=off" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Real-time software synthesizer based on the SoundFont 2 specifications";
|
description = "Real-time software synthesizer based on the SoundFont 2 specifications";
|
||||||
@ -44,6 +44,5 @@ stdenv.mkDerivation rec {
|
|||||||
license = licenses.lgpl21Plus;
|
license = licenses.lgpl21Plus;
|
||||||
maintainers = with maintainers; [ goibhniu lovek323 ];
|
maintainers = with maintainers; [ goibhniu lovek323 ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
badPlatforms = [ "x86_64-darwin" ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
|
|||||||
./gcc6.patch
|
./gcc6.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-Wno-error=c++11-narrowing";
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Renders an image of the earth or other planets into the X root window";
|
description = "Renders an image of the earth or other planets into the X root window";
|
||||||
|
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [cmake];
|
buildInputs = [cmake];
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-Wno-error=c++11-narrowing";
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Computational Morphometry Toolkit ";
|
description = "Computational Morphometry Toolkit ";
|
||||||
|
@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-Wno-error=argument-outside-range";
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error=argument-outside-range";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A professional free 3D Game Multiphysics Library";
|
description = "A professional free 3D Game Multiphysics Library";
|
||||||
|
@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
|
|||||||
# /build/clucene-core-2.3.3.4/build/bin/cl_test"
|
# /build/clucene-core-2.3.3.4/build/bin/cl_test"
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-Wno-error=c++11-narrowing";
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Core library for full-featured text search engine";
|
description = "Core library for full-featured text search engine";
|
||||||
|
@ -1,49 +0,0 @@
|
|||||||
diff --git a/common/Jackdmp.cpp b/common/Jackdmp.cpp
|
|
||||||
index 7eea281..4b8d75d 100644
|
|
||||||
--- a/common/Jackdmp.cpp
|
|
||||||
+++ b/common/Jackdmp.cpp
|
|
||||||
@@ -50,43 +50,11 @@ are "hard-coded" in the source. A much better approach would be to use the contr
|
|
||||||
- get available drivers and their possible parameters, then prepare to parse them.
|
|
||||||
*/
|
|
||||||
|
|
||||||
-#ifdef __APPLE__
|
|
||||||
-#include <CoreFoundation/CFNotificationCenter.h>
|
|
||||||
-#include <CoreFoundation/CoreFoundation.h>
|
|
||||||
-
|
|
||||||
-static void notify_server_start(const char* server_name)
|
|
||||||
-{
|
|
||||||
- // Send notification to be used in the JackRouter plugin
|
|
||||||
- CFStringRef ref = CFStringCreateWithCString(NULL, server_name, kCFStringEncodingMacRoman);
|
|
||||||
- CFNotificationCenterPostNotificationWithOptions(CFNotificationCenterGetDistributedCenter(),
|
|
||||||
- CFSTR("com.grame.jackserver.start"),
|
|
||||||
- ref,
|
|
||||||
- NULL,
|
|
||||||
- kCFNotificationDeliverImmediately | kCFNotificationPostToAllSessions);
|
|
||||||
- CFRelease(ref);
|
|
||||||
-}
|
|
||||||
-
|
|
||||||
-static void notify_server_stop(const char* server_name)
|
|
||||||
-{
|
|
||||||
- // Send notification to be used in the JackRouter plugin
|
|
||||||
- CFStringRef ref1 = CFStringCreateWithCString(NULL, server_name, kCFStringEncodingMacRoman);
|
|
||||||
- CFNotificationCenterPostNotificationWithOptions(CFNotificationCenterGetDistributedCenter(),
|
|
||||||
- CFSTR("com.grame.jackserver.stop"),
|
|
||||||
- ref1,
|
|
||||||
- NULL,
|
|
||||||
- kCFNotificationDeliverImmediately | kCFNotificationPostToAllSessions);
|
|
||||||
- CFRelease(ref1);
|
|
||||||
-}
|
|
||||||
-
|
|
||||||
-#else
|
|
||||||
-
|
|
||||||
static void notify_server_start(const char* server_name)
|
|
||||||
{}
|
|
||||||
static void notify_server_stop(const char* server_name)
|
|
||||||
{}
|
|
||||||
|
|
||||||
-#endif
|
|
||||||
-
|
|
||||||
static void copyright(FILE* file)
|
|
||||||
{
|
|
||||||
fprintf(file, "jackdmp " VERSION "\n"
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
|||||||
{ stdenv, fetchFromGitHub, pkgconfig, python2Packages, makeWrapper
|
{ stdenv, fetchFromGitHub, pkgconfig, python2Packages, makeWrapper
|
||||||
|
, fetchpatch
|
||||||
, bash, libsamplerate, libsndfile, readline, eigen, celt
|
, bash, libsamplerate, libsndfile, readline, eigen, celt
|
||||||
, wafHook
|
, wafHook, aften
|
||||||
# Darwin Dependencies
|
# Darwin Dependencies
|
||||||
, aften, AudioToolbox, CoreAudio, CoreFoundation
|
, AudioUnit, CoreAudio, cf-private, libobjc, Accelerate
|
||||||
|
|
||||||
# Optional Dependencies
|
# Optional Dependencies
|
||||||
, dbus ? null, libffado ? null, alsaLib ? null
|
, dbus ? null, libffado ? null, alsaLib ? null
|
||||||
@ -39,22 +40,20 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ pkgconfig python makeWrapper wafHook ];
|
nativeBuildInputs = [ pkgconfig python makeWrapper wafHook ];
|
||||||
buildInputs = [ libsamplerate libsndfile readline eigen celt
|
buildInputs = [ libsamplerate libsndfile readline eigen celt
|
||||||
optDbus optPythonDBus optLibffado optAlsaLib optLibopus
|
optDbus optPythonDBus optLibffado optAlsaLib optLibopus
|
||||||
] ++ optionals stdenv.isDarwin [ aften AudioToolbox CoreAudio CoreFoundation ];
|
aften
|
||||||
|
] ++ optionals stdenv.isDarwin [
|
||||||
# CoreFoundation 10.10 doesn't include CFNotificationCenter.h yet.
|
AudioUnit CoreAudio Accelerate cf-private libobjc
|
||||||
patches = optionals stdenv.isDarwin [ ./darwin-cf.patch ];
|
];
|
||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
substituteInPlace svnversion_regenerate.sh \
|
substituteInPlace svnversion_regenerate.sh \
|
||||||
--replace /bin/bash ${bash}/bin/bash
|
--replace /bin/bash ${bash}/bin/bash
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# It looks like one of the frameworks depends on <CoreFoundation/CFAttributedString.h>
|
patches = [ (fetchpatch {
|
||||||
# since frameworks are impure we also have to use the impure CoreFoundation here.
|
url = "https://github.com/jackaudio/jack2/commit/d851fada460d42508a6f82b19867f63853062583.patch";
|
||||||
# FIXME: remove when CoreFoundation is updated to 10.11
|
sha256 = "1iwwxjzvgrj7dz3s8alzlhcgmcarjcbkrgvsmy6kafw21pyyw7hp";
|
||||||
preConfigure = optionalString stdenv.isDarwin ''
|
}) ];
|
||||||
export NIX_CFLAGS_COMPILE="-F${CoreFoundation}/Library/Frameworks $NIX_CFLAGS_COMPILE"
|
|
||||||
'';
|
|
||||||
|
|
||||||
wafConfigureFlags = [
|
wafConfigureFlags = [
|
||||||
"--classic"
|
"--classic"
|
||||||
@ -76,6 +75,5 @@ stdenv.mkDerivation rec {
|
|||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
maintainers = with maintainers; [ goibhniu ];
|
maintainers = with maintainers; [ goibhniu ];
|
||||||
badPlatforms = [ "x86_64-darwin" ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
setupHook = ./setup-hook.sh;
|
setupHook = ./setup-hook.sh;
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-Wno-error=c++11-narrowing";
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://p7zip.sourceforge.net/;
|
homepage = http://p7zip.sourceforge.net/;
|
||||||
|
@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
installFlags = "PREFIX=$(out)";
|
installFlags = "PREFIX=$(out)";
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-Wno-error=reserved-user-defined-literal";
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-error=reserved-user-defined-literal";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://compression.ca/pbzip2/;
|
homepage = http://compression.ca/pbzip2/;
|
||||||
|
@ -53,7 +53,8 @@ stdenv.mkDerivation rec {
|
|||||||
sed 's|LIBS += -lstdc++.6||' -i Makefile
|
sed 's|LIBS += -lstdc++.6||' -i Makefile
|
||||||
'';
|
'';
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = [ "-fpermissive" "-Wno-error=reserved-user-defined-literal" ];
|
NIX_CFLAGS_COMPILE = [ "-fpermissive" ]
|
||||||
|
++ stdenv.lib.optional stdenv.cc.isClang "-Wno-error=reserved-user-defined-literal";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "High-speed web-based traffic analysis and flow collection tool";
|
description = "High-speed web-based traffic analysis and flow collection tool";
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
, stateDir ? "/nix/var"
|
, stateDir ? "/nix/var"
|
||||||
, confDir ? "/etc"
|
, confDir ? "/etc"
|
||||||
, boehmgc
|
, boehmgc
|
||||||
, llvmPackages_6
|
, stdenv, llvmPackages_6
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -167,7 +167,7 @@ in rec {
|
|||||||
inherit storeDir stateDir confDir boehmgc;
|
inherit storeDir stateDir confDir boehmgc;
|
||||||
};
|
};
|
||||||
|
|
||||||
nixStable = callPackage common rec {
|
nixStable = callPackage common (rec {
|
||||||
name = "nix-2.2.2";
|
name = "nix-2.2.2";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://nixos.org/releases/nix/${name}/${name}.tar.xz";
|
url = "http://nixos.org/releases/nix/${name}/${name}.tar.xz";
|
||||||
@ -175,9 +175,9 @@ in rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
inherit storeDir stateDir confDir boehmgc;
|
inherit storeDir stateDir confDir boehmgc;
|
||||||
|
} // stdenv.lib.optionalAttrs stdenv.cc.isClang {
|
||||||
stdenv = llvmPackages_6.stdenv;
|
stdenv = llvmPackages_6.stdenv;
|
||||||
};
|
});
|
||||||
|
|
||||||
nixUnstable = lib.lowPrio (callPackage common rec {
|
nixUnstable = lib.lowPrio (callPackage common rec {
|
||||||
name = "nix-2.3${suffix}";
|
name = "nix-2.3${suffix}";
|
||||||
@ -191,8 +191,6 @@ in rec {
|
|||||||
fromGit = true;
|
fromGit = true;
|
||||||
|
|
||||||
inherit storeDir stateDir confDir boehmgc;
|
inherit storeDir stateDir confDir boehmgc;
|
||||||
|
|
||||||
stdenv = llvmPackages_6.stdenv;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -22997,7 +22997,8 @@ in
|
|||||||
|
|
||||||
jack2 = callPackage ../misc/jackaudio {
|
jack2 = callPackage ../misc/jackaudio {
|
||||||
libopus = libopus.override { withCustomModes = true; };
|
libopus = libopus.override { withCustomModes = true; };
|
||||||
inherit (darwin.apple_sdk.frameworks) AudioToolbox CoreAudio CoreFoundation;
|
inherit (darwin.apple_sdk.frameworks) AudioUnit CoreAudio Accelerate;
|
||||||
|
inherit (darwin) cf-private libobjc;
|
||||||
};
|
};
|
||||||
libjack2 = jack2.override { prefix = "lib"; };
|
libjack2 = jack2.override { prefix = "lib"; };
|
||||||
jack2Full = jack2; # TODO: move to aliases.nix
|
jack2Full = jack2; # TODO: move to aliases.nix
|
||||||
|
Loading…
x
Reference in New Issue
Block a user