summary refs log tree commit diff
path: root/pkgs/applications/editors
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-02-18 16:32:30 -0600
committerWill Dietz <w@wdtz.org>2018-02-18 16:32:30 -0600
commit933822d579ee6c39fc35222dc4c207c20579fa42 (patch)
tree7f21c2cdb165fa67ced59b48c2e886247fd21b25 /pkgs/applications/editors
parent4139a6f0e5109859bc5a5043dac9d878a6f0fa58 (diff)
downloadnixlib-933822d579ee6c39fc35222dc4c207c20579fa42.tar
nixlib-933822d579ee6c39fc35222dc4c207c20579fa42.tar.gz
nixlib-933822d579ee6c39fc35222dc4c207c20579fa42.tar.bz2
nixlib-933822d579ee6c39fc35222dc4c207c20579fa42.tar.lz
nixlib-933822d579ee6c39fc35222dc4c207c20579fa42.tar.xz
nixlib-933822d579ee6c39fc35222dc4c207c20579fa42.tar.zst
nixlib-933822d579ee6c39fc35222dc4c207c20579fa42.zip
leo-editor: add local copy of pyqt56 since it was globally removed
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r--pkgs/applications/editors/leo-editor/default.nix13
1 files changed, 11 insertions, 2 deletions
diff --git a/pkgs/applications/editors/leo-editor/default.nix b/pkgs/applications/editors/leo-editor/default.nix
index 924e662b8084..2084a047a086 100644
--- a/pkgs/applications/editors/leo-editor/default.nix
+++ b/pkgs/applications/editors/leo-editor/default.nix
@@ -1,5 +1,14 @@
-{ stdenv, python3, fetchFromGitHub, makeWrapper, makeDesktopItem }:
+{ stdenv, python3, libsForQt56, fetchFromGitHub, makeWrapper, makeDesktopItem }:
 
+let
+  packageOverrides = self: super: {
+    pyqt56 = libsForQt56.callPackage ../../../development/python-modules/pyqt/5.x.nix {
+      pythonPackages = self;
+    };
+  };
+
+  pythonPackages = (python3.override { inherit packageOverrides; }).pkgs;
+in
 stdenv.mkDerivation rec {
   name = "leo-editor-${version}";
   version = "5.6";
@@ -14,7 +23,7 @@ stdenv.mkDerivation rec {
   dontBuild = true;
 
   nativeBuildInputs = [ makeWrapper python3 ];
-  propagatedBuildInputs = with python3.pkgs; [ pyqt56 docutils ];
+  propagatedBuildInputs = with pythonPackages; [ pyqt56 docutils ];
 
   desktopItem = makeDesktopItem rec {
     name = "leo-editor";