Created
July 19, 2015 17:34
-
-
Save danbst/e4199acb6b4dee9cdfbf to your computer and use it in GitHub Desktop.
Attempt to package python-qscintilla
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
qscintilla-qt4 = stdenv.mkDerivation rec { | |
name = "qscintilla-qt4-${version}"; | |
version = pkgs.qscintilla.version; | |
disabled = isPy3k || isPyPy; | |
src = pkgs.qscintilla.src; | |
buildInputs = [ pkgs.python ]; | |
propagatedBuildInputs = [ pkgs.pyqt4 pkgs.qscintilla pkgs.qt4 ]; | |
patches = [ ./p1.patch ]; | |
preConfigure = " | |
cd Python | |
${python}/bin/python ./configure.py \\ | |
--destdir $out/lib/${python.libPrefix}/site-packages/PyQt4 \\ | |
--apidir $out/api/${python.libPrefix} \\ | |
--pyqt PyQt4 \\ | |
--qsci-incdir ${pkgs.qscintilla}/include \\ | |
--qsci-libdir ${pkgs.qscintilla}/lib \\ | |
--no-sip-files | |
"; | |
postInstall = '' | |
mkdir -p $out/lib/${python.libPrefix}/site-packages/PyQt | |
touch $out/lib/${python.libPrefix}/site-packages/PyQt/__init__.py | |
''; | |
#--no-qsci-api \\ | |
# | |
# | |
configureScript = ""; | |
meta = with stdenv.lib; { | |
description = "A Python binding to QScintilla"; | |
license = licenses.lgpl21Plus; | |
maintainers = [ "abcz2.uprola@gmail.com" ]; | |
platforms = platforms.all; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment