qscintilla: cleanup

+47 -79
+10 -3
pkgs/development/libraries/qscintilla-qt4/default.nix
··· 1 - { stdenv, lib, fetchurl, unzip, qt4, qmake4Hook 1 + { stdenv 2 + , lib 3 + , fetchurl 4 + , unzip 5 + , qt4 6 + , qmake4Hook 2 7 }: 3 8 4 9 stdenv.mkDerivation rec { ··· 16 21 17 22 nativeBuildInputs = [ unzip qmake4Hook ]; 18 23 19 - patches = ./fix-qt4-build.patch; 24 + patches = [ 25 + ./fix-qt4-build.patch 26 + ]; 20 27 21 28 # Make sure that libqscintilla2.so is available in $out/lib since it is expected 22 29 # by some packages such as sqlitebrowser 23 30 postFixup = '' 24 - ln -s $out/lib/libqscintilla2_qt?.so $out/lib/libqscintilla2.so 31 + ln -s $out/lib/libqscintilla2_qt4.so $out/lib/libqscintilla2.so 25 32 ''; 26 33 27 34 dontWrapQtApps = true;
+8 -4
pkgs/development/libraries/qscintilla/default.nix
··· 1 - { stdenv, lib, fetchurl, unzip 2 - , qtbase, qtmacextras 1 + { stdenv 2 + , lib 3 + , fetchurl 4 + , unzip 5 + , qtbase 6 + , qtmacextras 3 7 , qmake 4 8 , fixDarwinDylibNames 5 9 }: ··· 20 24 propagatedBuildInputs = lib.optionals stdenv.isDarwin [ qtmacextras ]; 21 25 22 26 nativeBuildInputs = [ unzip qmake ] 23 - ++ lib.optional stdenv.isDarwin fixDarwinDylibNames; 27 + ++ lib.optionals stdenv.isDarwin [ fixDarwinDylibNames ]; 24 28 25 29 # Make sure that libqscintilla2.so is available in $out/lib since it is expected 26 30 # by some packages such as sqlitebrowser 27 31 postFixup = '' 28 - ln -s $out/lib/libqscintilla2_qt?.so $out/lib/libqscintilla2.so 32 + ln -s $out/lib/libqscintilla2_qt5.so $out/lib/libqscintilla2.so 29 33 ''; 30 34 31 35 dontWrapQtApps = true;
+28 -28
pkgs/development/python-modules/qscintilla-qt4/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 - , disabledIf 4 3 , isPy3k 5 4 , isPyPy 6 5 , pkgs ··· 8 7 , pyqt4 9 8 }: 10 9 11 - disabledIf (isPy3k || isPyPy) 12 - (buildPythonPackage { 13 - pname = "qscintilla"; 14 - version = pkgs.qscintilla.version; 15 - format = "other"; 10 + buildPythonPackage { 11 + pname = "qscintilla-qt4"; 12 + version = pkgs.qscintilla-qt4.version; 13 + format = "other"; 16 14 17 - src = pkgs.qscintilla.src; 15 + disabled = isPyPy; 18 16 19 - nativeBuildInputs = [ pkgs.xorg.lndir ]; 17 + src = pkgs.qscintilla-qt4.src; 20 18 21 - buildInputs = [ pyqt4.qt pyqt4 ]; 19 + nativeBuildInputs = [ pkgs.xorg.lndir ]; 22 20 23 - preConfigure = '' 24 - mkdir -p $out 25 - lndir ${pyqt4} $out 26 - rm -rf "$out/nix-support" 27 - cd Python 28 - ${python.executable} ./configure-old.py \ 29 - --destdir $out/lib/${python.libPrefix}/site-packages/PyQt4 \ 30 - --apidir $out/api/${python.libPrefix} \ 31 - -n ${pkgs.qscintilla}/include \ 32 - -o ${pkgs.qscintilla}/lib \ 33 - --sipdir $out/share/sip 34 - ''; 21 + buildInputs = [ pyqt4.qt pyqt4 ]; 35 22 36 - meta = with lib; { 37 - description = "A Python binding to QScintilla, Qt based text editing control"; 38 - license = licenses.lgpl21Plus; 39 - maintainers = with maintainers; [ danbst ]; 40 - platforms = platforms.linux; 41 - }; 42 - }) 23 + preConfigure = '' 24 + mkdir -p $out 25 + lndir ${pyqt4} $out 26 + rm -rf "$out/nix-support" 27 + cd Python 28 + ${python.executable} ./configure-old.py \ 29 + --destdir $out/lib/${python.libPrefix}/site-packages/PyQt4 \ 30 + --apidir $out/api/${python.libPrefix} \ 31 + -n ${pkgs.qscintilla-qt4}/include \ 32 + -o ${pkgs.qscintilla-qt4}/lib \ 33 + --sipdir $out/share/sip 34 + ''; 35 + 36 + meta = with lib; { 37 + description = "A Python binding to QScintilla, Qt based text editing control"; 38 + license = licenses.lgpl21Plus; 39 + maintainers = with maintainers; [ danbst ]; 40 + platforms = platforms.linux; 41 + }; 42 + }
+1 -1
pkgs/development/python-modules/qscintilla-qt5/default.nix
··· 10 10 let 11 11 inherit (pythonPackages) buildPythonPackage isPy3k python sip sipbuild pyqt5 pyqt-builder; 12 12 in buildPythonPackage rec { 13 - pname = "qscintilla"; 13 + pname = "qscintilla-qt5"; 14 14 version = qscintilla.version; 15 15 src = qscintilla.src; 16 16 format = "pyproject";
-43
pkgs/development/python-modules/qscintilla/default.nix
··· 1 - { lib 2 - , buildPythonPackage 3 - , disabledIf 4 - , isPy3k 5 - , isPyPy 6 - , pkgs 7 - , python 8 - , pyqt4 9 - }: 10 - 11 - disabledIf (isPy3k || isPyPy) 12 - (buildPythonPackage { 13 - # TODO: Qt5 support 14 - pname = "qscintilla"; 15 - version = pkgs.qscintilla.version; 16 - format = "other"; 17 - 18 - src = pkgs.qscintilla.src; 19 - 20 - nativeBuildInputs = [ pkgs.xorg.lndir ]; 21 - 22 - buildInputs = [ pyqt4.qt pyqt4 ]; 23 - 24 - preConfigure = '' 25 - mkdir -p $out 26 - lndir ${pyqt4} $out 27 - rm -rf "$out/nix-support" 28 - cd Python 29 - ${python.executable} ./configure-old.py \ 30 - --destdir $out/lib/${python.libPrefix}/site-packages/PyQt4 \ 31 - --apidir $out/api/${python.libPrefix} \ 32 - -n ${pkgs.qscintilla}/include \ 33 - -o ${pkgs.qscintilla}/lib \ 34 - --sipdir $out/share/sip 35 - ''; 36 - 37 - meta = with lib; { 38 - description = "A Python binding to QScintilla, Qt based text editing control"; 39 - license = licenses.lgpl21Plus; 40 - maintainers = with maintainers; [ danbst ]; 41 - platforms = platforms.unix; 42 - }; 43 - })