Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixup from macos-10-12 branch #60447

Merged
merged 4 commits into from
Apr 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions pkgs/applications/audio/fluidsynth/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,17 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ pkgconfig cmake ];

buildInputs = [ glib libsndfile ]
++ lib.optionals (!stdenv.isDarwin) [ alsaLib libpulseaudio libjack2 ]
buildInputs = [ glib libsndfile libpulseaudio libjack2 ]
++ lib.optionals stdenv.isLinux [ alsaLib ]
++ lib.optionals stdenv.isDarwin [ AudioUnit CoreAudio CoreMIDI CoreServices ];

cmakeFlags = lib.optional stdenv.isDarwin "-Denable-framework=off";
cmakeFlags = [ "-Denable-framework=off" ];

meta = with lib; {
description = "Real-time software synthesizer based on the SoundFont 2 specifications";
homepage = http://www.fluidsynth.org;
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ goibhniu lovek323 ];
platforms = platforms.unix;
badPlatforms = [ "x86_64-darwin" ];
};
}
2 changes: 1 addition & 1 deletion pkgs/applications/science/astronomy/xplanet/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
./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 = {
description = "Renders an image of the earth or other planets into the X root window";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/science/biology/cmtk/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ stdenv.mkDerivation rec {

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; {
description = "Computational Morphometry Toolkit ";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/bullet/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ stdenv.mkDerivation rec {

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; {
description = "A professional free 3D Game Multiphysics Library";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/clucene-core/2.x.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
# /build/clucene-core-2.3.3.4/build/bin/cl_test"
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; {
description = "Core library for full-featured text search engine";
Expand Down
49 changes: 0 additions & 49 deletions pkgs/misc/jackaudio/darwin-cf.patch

This file was deleted.

24 changes: 11 additions & 13 deletions pkgs/misc/jackaudio/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{ stdenv, fetchFromGitHub, pkgconfig, python2Packages, makeWrapper
, fetchpatch
, bash, libsamplerate, libsndfile, readline, eigen, celt
, wafHook
, wafHook, aften
# Darwin Dependencies
, aften, AudioToolbox, CoreAudio, CoreFoundation
, AudioUnit, CoreAudio, cf-private, libobjc, Accelerate

# Optional Dependencies
, dbus ? null, libffado ? null, alsaLib ? null
Expand Down Expand Up @@ -39,22 +40,20 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig python makeWrapper wafHook ];
buildInputs = [ libsamplerate libsndfile readline eigen celt
optDbus optPythonDBus optLibffado optAlsaLib optLibopus
] ++ optionals stdenv.isDarwin [ aften AudioToolbox CoreAudio CoreFoundation ];

# CoreFoundation 10.10 doesn't include CFNotificationCenter.h yet.
patches = optionals stdenv.isDarwin [ ./darwin-cf.patch ];
aften
] ++ optionals stdenv.isDarwin [
AudioUnit CoreAudio Accelerate cf-private libobjc
];

prePatch = ''
substituteInPlace svnversion_regenerate.sh \
--replace /bin/bash ${bash}/bin/bash
'';

# It looks like one of the frameworks depends on <CoreFoundation/CFAttributedString.h>
# since frameworks are impure we also have to use the impure CoreFoundation here.
# FIXME: remove when CoreFoundation is updated to 10.11
preConfigure = optionalString stdenv.isDarwin ''
export NIX_CFLAGS_COMPILE="-F${CoreFoundation}/Library/Frameworks $NIX_CFLAGS_COMPILE"
'';
patches = [ (fetchpatch {
url = "https://github.com/jackaudio/jack2/commit/d851fada460d42508a6f82b19867f63853062583.patch";
sha256 = "1iwwxjzvgrj7dz3s8alzlhcgmcarjcbkrgvsmy6kafw21pyyw7hp";
}) ];

wafConfigureFlags = [
"--classic"
Expand All @@ -76,6 +75,5 @@ stdenv.mkDerivation rec {
license = licenses.gpl2Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ goibhniu ];
badPlatforms = [ "x86_64-darwin" ];
};
}
2 changes: 1 addition & 1 deletion pkgs/tools/archivers/p7zip/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ stdenv.mkDerivation rec {

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 = {
homepage = http://p7zip.sourceforge.net/;
Expand Down
2 changes: 1 addition & 1 deletion pkgs/tools/compression/pbzip2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ stdenv.mkDerivation rec {

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; {
homepage = http://compression.ca/pbzip2/;
Expand Down
3 changes: 2 additions & 1 deletion pkgs/tools/networking/ntopng/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ stdenv.mkDerivation rec {
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; {
description = "High-speed web-based traffic analysis and flow collection tool";
Expand Down
10 changes: 4 additions & 6 deletions pkgs/tools/package-management/nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
, stateDir ? "/nix/var"
, confDir ? "/etc"
, boehmgc
, llvmPackages_6
, stdenv, llvmPackages_6
}:

let
Expand Down Expand Up @@ -167,17 +167,17 @@ in rec {
inherit storeDir stateDir confDir boehmgc;
};

nixStable = callPackage common rec {
nixStable = callPackage common (rec {
name = "nix-2.2.2";
src = fetchurl {
url = "http://nixos.org/releases/nix/${name}/${name}.tar.xz";
sha256 = "f80a1b4f9837a8d33209f0b7769d5038335459ff4303eccf3e9217a9eca8594c";
};

inherit storeDir stateDir confDir boehmgc;

} // stdenv.lib.optionalAttrs stdenv.cc.isClang {
stdenv = llvmPackages_6.stdenv;
};
});

nixUnstable = lib.lowPrio (callPackage common rec {
name = "nix-2.3${suffix}";
Expand All @@ -191,8 +191,6 @@ in rec {
fromGit = true;

inherit storeDir stateDir confDir boehmgc;

stdenv = llvmPackages_6.stdenv;
});

}
3 changes: 2 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22992,7 +22992,8 @@ in

jack2 = callPackage ../misc/jackaudio {
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"; };
jack2Full = jack2; # TODO: move to aliases.nix
Expand Down