Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions pkgs/development/libraries/qscintilla-qt4/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
{ stdenv, lib, fetchurl, unzip, qt4, qmake4Hook
{ stdenv
, lib
, fetchurl
, unzip
, qt4
, qmake4Hook
}:

stdenv.mkDerivation rec {
Expand All @@ -16,12 +21,14 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ unzip qmake4Hook ];

patches = ./fix-qt4-build.patch;
patches = [
./fix-qt4-build.patch
];

# Make sure that libqscintilla2.so is available in $out/lib since it is expected
# by some packages such as sqlitebrowser
postFixup = ''
ln -s $out/lib/libqscintilla2_qt?.so $out/lib/libqscintilla2.so
ln -s $out/lib/libqscintilla2_qt4.so $out/lib/libqscintilla2.so
'';

dontWrapQtApps = true;
Expand Down
12 changes: 8 additions & 4 deletions pkgs/development/libraries/qscintilla/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{ stdenv, lib, fetchurl, unzip
, qtbase, qtmacextras
{ stdenv
, lib
, fetchurl
, unzip
, qtbase
, qtmacextras
, qmake
, fixDarwinDylibNames
}:
Expand All @@ -20,12 +24,12 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = lib.optionals stdenv.isDarwin [ qtmacextras ];

nativeBuildInputs = [ unzip qmake ]
++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
++ lib.optionals stdenv.isDarwin [ fixDarwinDylibNames ];

# Make sure that libqscintilla2.so is available in $out/lib since it is expected
# by some packages such as sqlitebrowser
postFixup = ''
ln -s $out/lib/libqscintilla2_qt?.so $out/lib/libqscintilla2.so
ln -s $out/lib/libqscintilla2_qt5.so $out/lib/libqscintilla2.so
'';

dontWrapQtApps = true;
Expand Down
56 changes: 28 additions & 28 deletions pkgs/development/python-modules/qscintilla-qt4/default.nix
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
{ lib
, buildPythonPackage
, disabledIf
, isPy3k
, isPyPy
, pkgs
, python
, pyqt4
}:

disabledIf (isPy3k || isPyPy)
(buildPythonPackage {
pname = "qscintilla";
version = pkgs.qscintilla.version;
format = "other";
buildPythonPackage {
pname = "qscintilla-qt4";
version = pkgs.qscintilla-qt4.version;
format = "other";

src = pkgs.qscintilla.src;
disabled = isPyPy;

nativeBuildInputs = [ pkgs.xorg.lndir ];
src = pkgs.qscintilla-qt4.src;

buildInputs = [ pyqt4.qt pyqt4 ];
nativeBuildInputs = [ pkgs.xorg.lndir ];

preConfigure = ''
mkdir -p $out
lndir ${pyqt4} $out
rm -rf "$out/nix-support"
cd Python
${python.executable} ./configure-old.py \
--destdir $out/lib/${python.libPrefix}/site-packages/PyQt4 \
--apidir $out/api/${python.libPrefix} \
-n ${pkgs.qscintilla}/include \
-o ${pkgs.qscintilla}/lib \
--sipdir $out/share/sip
'';
buildInputs = [ pyqt4.qt pyqt4 ];

meta = with lib; {
description = "A Python binding to QScintilla, Qt based text editing control";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ danbst ];
platforms = platforms.linux;
};
})
preConfigure = ''
mkdir -p $out
lndir ${pyqt4} $out
rm -rf "$out/nix-support"
cd Python
${python.executable} ./configure-old.py \
--destdir $out/lib/${python.libPrefix}/site-packages/PyQt4 \
--apidir $out/api/${python.libPrefix} \
-n ${pkgs.qscintilla-qt4}/include \
-o ${pkgs.qscintilla-qt4}/lib \
--sipdir $out/share/sip
'';

meta = with lib; {
description = "A Python binding to QScintilla, Qt based text editing control";
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ danbst ];
platforms = platforms.linux;
};
}
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/qscintilla-qt5/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
let
inherit (pythonPackages) buildPythonPackage isPy3k python sip sipbuild pyqt5 pyqt-builder;
in buildPythonPackage rec {
pname = "qscintilla";
pname = "qscintilla-qt5";
version = qscintilla.version;
src = qscintilla.src;
format = "pyproject";
Expand Down
43 changes: 0 additions & 43 deletions pkgs/development/python-modules/qscintilla/default.nix

This file was deleted.