Skip to content

Commit

Permalink
Fix qscintilla qt5 darwin build
Browse files Browse the repository at this point in the history
  • Loading branch information
mpickering committed Mar 21, 2018
1 parent de6360b commit 3391006
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkgs/development/libraries/qscintilla/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
, withQt5 ? false, qtbase ? null, qtmacextras ? null, qmake ? null
}:

# Fix Xcode 8 compilation problem
let xcodePatch =
fetchurl { url = "https://raw.githubusercontent.com/Homebrew/formula-patches/a651d71/qscintilla2/xcode-8.patch";
sha256 = "1a88309fdfd421f4458550b710a562c622d72d6e6fdd697107e4a43161d69bc9"; };
in
stdenv.mkDerivation rec {
pname = "qscintilla";
version = "2.9.4";
Expand All @@ -19,6 +24,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ unzip ]
++ (if withQt5 then [ qmake ] else [ qmake4Hook ]);


patches = [] ++ lib.optional withQt5 [ xcodePatch ];

enableParallelBuilding = true;

preConfigure = ''
Expand Down

0 comments on commit 3391006

Please sign in to comment.