nixpkgs/pkgs/development/libraries/qscintilla/default.nix

48 lines
1.6 KiB
Nix
Raw Normal View History

2014-08-20 23:41:41 +01:00
{ stdenv, fetchurl, qt }:
stdenv.mkDerivation rec {
pname = "qscintilla";
2014-11-08 20:19:46 +00:00
version = "2.8.4";
2014-08-20 23:41:41 +01:00
name = "${pname}-${version}";
src = fetchurl {
2014-09-04 10:01:23 +01:00
url = "mirror://sourceforge/pyqt/QScintilla2/QScintilla-${version}/QScintilla-gpl-${version}.tar.gz";
2014-11-08 20:19:46 +00:00
sha256 = "03z8mc7wpk0hyza9b45pyf523gdk0qsqaywkprmp6ffc81s2sywv";
2014-08-20 23:41:41 +01:00
};
buildInputs = [ qt ];
preConfigure = ''
cd Qt4Qt5
2014-11-08 20:19:46 +00:00
sed -i -e "s,\$\$\\[QT_INSTALL_LIBS\\],$out/lib," \
2014-08-20 23:41:41 +01:00
-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
qmake qscintilla.pro
'';
# TODO PyQt Support.
meta = {
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 = stdenv.lib.licenses.gpl2; # and gpl3 and commercial
};
}