libsForQt5.qscintilla: fix darwin build

This commit is contained in:
Dmitry Kalinkin 2020-05-23 19:34:06 -04:00
parent 56ddb0a32a
commit 04fd66496f
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333

View File

@ -5,12 +5,6 @@
}: }:
let let
# Fix Xcode 8 compilation problem
xcodePatch = fetchurl {
url = "https://raw.githubusercontent.com/Homebrew/formula-patches/a651d71/qscintilla2/xcode-8.patch";
sha256 = "1a88309fdfd421f4458550b710a562c622d72d6e6fdd697107e4a43161d69bc9";
};
pname = "qscintilla-qt${if withQt5 then "5" else "4"}"; pname = "qscintilla-qt${if withQt5 then "5" else "4"}";
version = "2.11.2"; version = "2.11.2";
@ -32,8 +26,7 @@ in stdenv.mkDerivation rec {
++ (if withQt5 then [ qmake ] else [ qmake4Hook ]) ++ (if withQt5 then [ qmake ] else [ qmake4Hook ])
++ lib.optional stdenv.isDarwin fixDarwinDylibNames; ++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
patches = (lib.optional (stdenv.isDarwin && withQt5) xcodePatch) ++ patches = lib.optional (!withQt5) ./fix-qt4-build.patch;
(lib.optional (!withQt5) ./fix-qt4-build.patch );
# Make sure that libqscintilla2.so is available in $out/lib since it is expected # Make sure that libqscintilla2.so is available in $out/lib since it is expected
# by some packages such as sqlitebrowser # by some packages such as sqlitebrowser