8ee6a03a3e
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. These checks were done: - built on NixOS - Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.) - found 2.10.3 with grep in /nix/store/2q8rpns7liydfjw0sfxmr4dqb6ydn7fh-qscintilla-qt5-2.10.3 - directory tree listing: https://gist.github.com/a8a71ce267574bdfa3cfb49ecd9d784e
64 lines
2.4 KiB
Nix
64 lines
2.4 KiB
Nix
{ stdenv, fetchurl, unzip
|
|
, qt4 ? null, qmake4Hook ? null
|
|
, withQt5 ? false, qtbase ? null, qmake ? null
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "qscintilla";
|
|
version = "2.10.3";
|
|
|
|
name = "${pname}-${if withQt5 then "qt5" else "qt4"}-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/pyqt/QScintilla2/QScintilla-${version}/QScintilla_gpl-${version}.zip";
|
|
sha256 = "0rsx0b0iz5yf3x594kzhi0c2wpbmknv9b0a3rmx5w37bvmpd6qav";
|
|
};
|
|
|
|
buildInputs = if withQt5 then [ qtbase ] else [ qt4 ];
|
|
nativeBuildInputs = [ unzip ] ++ (if withQt5 then [ qmake ] else [ qmake4Hook ]);
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
preConfigure = ''
|
|
cd Qt4Qt5
|
|
${if withQt5
|
|
then ''
|
|
sed -i -e "s,\$\$\\[QT_INSTALL_LIBS\\],$out/lib," \
|
|
-e "s,\$\$\\[QT_INSTALL_HEADERS\\],$out/include/," \
|
|
-e "s,\$\$\\[QT_INSTALL_TRANSLATIONS\\],$out/translations," \
|
|
-e "s,\$\$\\[QT_HOST_DATA\\]/mkspecs,$out/mkspecs," \
|
|
-e "s,\$\$\\[QT_INSTALL_DATA\\]/mkspecs,$out/mkspecs," \
|
|
-e "s,\$\$\\[QT_INSTALL_DATA\\],$out/share," \
|
|
qscintilla.pro
|
|
''
|
|
else ''
|
|
sed -i -e "s,\$\$\\[QT_INSTALL_LIBS\\],$out/lib," \
|
|
-e "s,\$\$\\[QT_INSTALL_HEADERS\\],$out/include/," \
|
|
-e "s,\$\$\\[QT_INSTALL_TRANSLATIONS\\],$out/share/qt/translations," \
|
|
-e "s,\$\$\\[QT_INSTALL_DATA\\],$out/share/qt," \
|
|
qscintilla.pro
|
|
''}
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A Qt port of the Scintilla text editing library";
|
|
longDescription = ''
|
|
QScintilla is a port to Qt of Neil Hodgson's Scintilla C++ editor
|
|
control.
|
|
|
|
As well as features found in standard text editing components,
|
|
QScintilla includes features especially useful when editing and
|
|
debugging source code. These include support for syntax styling,
|
|
error indicators, code completion and call tips. The selection
|
|
margin can contain markers like those used in debuggers to
|
|
indicate breakpoints and the current line. Styling choices are
|
|
more open than with many editors, allowing the use of
|
|
proportional fonts, bold and italics, multiple foreground and
|
|
background colours and multiple fonts.
|
|
'';
|
|
homepage = http://www.riverbankcomputing.com/software/qscintilla/intro;
|
|
license = with licenses; [ gpl2 gpl3 ]; # and commercial
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
};
|
|
}
|