From 09a1ae83f92a7cb59001af27d614efda263482e1 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Wed, 13 Nov 2019 16:24:00 +0100 Subject: [PATCH] displaycal: pin python2 because of wxPython --- .../graphics/displaycal/default.nix | 19 +++++++++++++++---- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/graphics/displaycal/default.nix b/pkgs/applications/graphics/displaycal/default.nix index 821a9e8083e1..7a4db535b2b0 100644 --- a/pkgs/applications/graphics/displaycal/default.nix +++ b/pkgs/applications/graphics/displaycal/default.nix @@ -1,8 +1,19 @@ -{buildPythonPackage, stdenv, fetchurl, pkgconfig - , libXext, libXxf86vm, libX11, libXrandr, libXinerama, libXScrnSaver - , argyllcms, wxPython, numpy +{ python2 +, stdenv +, fetchurl +, pkgconfig +, libXext +, libXxf86vm +, libX11 +, libXrandr +, libXinerama +, libXScrnSaver +, argyllcms }: -buildPythonPackage { + +let + inherit (python2.pkgs) buildPythonApplication wxPython numpy; +in buildPythonApplication { pname = "displaycal"; version = "3.5.0.0"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 47d6f70d236d..874bfca762e6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22529,7 +22529,7 @@ in opencv3 = opencv3WithoutCuda; }; - displaycal = (newScope pythonPackages) ../applications/graphics/displaycal {}; + displaycal = callPackage ../applications/graphics/displaycal {}; drumkv1 = libsForQt5.callPackage ../applications/audio/drumkv1 { };