Skip to content

Instantly share code, notes, and snippets.

@danbst
Created July 19, 2015 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danbst/e4199acb6b4dee9cdfbf to your computer and use it in GitHub Desktop.
Save danbst/e4199acb6b4dee9cdfbf to your computer and use it in GitHub Desktop.
Attempt to package python-qscintilla
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