about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pygobject
diff options
context:
space:
mode:
authorJosef Kemetmueller <josef.kemetmueller@aon.at>2016-08-26 23:18:32 +0200
committerJosef Kemetmueller <josef.kemetmueller@aon.at>2016-09-04 10:46:04 +0200
commit717c76716fb839eca7cddf25a391a3a336702a04 (patch)
treee9e0a58e3da7922ba4dcd9043f4e18902f2048df /pkgs/development/python-modules/pygobject
parentb7819e38c4a7487a0d09bdf64275a246bf29a8e2 (diff)
pygobject3: Add missing dependencies (for darwin)
The packages "which" and "ncurses" are needed for building pygobject3
(on darwin) during the checkPhase. The ncurses library is necessary only
because python3.5 is currently built using "-lncurses" and pygobject3
wants the same libraries that python3.5 was compiled with. (Because it
uses "python3.5-config --ldflags" during the build)
Diffstat (limited to 'pkgs/development/python-modules/pygobject')
-rw-r--r--pkgs/development/python-modules/pygobject/3.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/development/python-modules/pygobject/3.nix b/pkgs/development/python-modules/pygobject/3.nix
index 43882476b9d5e..797d89fd4822d 100644
--- a/pkgs/development/python-modules/pygobject/3.nix
+++ b/pkgs/development/python-modules/pygobject/3.nix
@@ -1,4 +1,4 @@
-{ lib, fetchurl, mkPythonDerivation, python, pkgconfig, glib, gobjectIntrospection, pycairo, cairo }:
+{ stdenv, fetchurl, mkPythonDerivation, python, pkgconfig, glib, gobjectIntrospection, pycairo, cairo, which, ncurses}:
 
 mkPythonDerivation rec {
   major = "3.20";
@@ -10,12 +10,13 @@ mkPythonDerivation rec {
     sha256 = "0ikzh3l7g1gjh8jj8vg6mdvrb25svp63gxcam4m0i404yh0lgari";
   };
 
-  buildInputs = [ pkgconfig glib gobjectIntrospection ];
+  buildInputs = [ pkgconfig glib gobjectIntrospection ]
+                 ++ stdenv.lib.optionals stdenv.isDarwin [ which ncurses ];
   propagatedBuildInputs = [ pycairo cairo ];
 
   meta = {
     homepage = http://live.gnome.org/PyGObject;
     description = "Python bindings for Glib";
-    platforms = lib.platforms.unix;
+    platforms = stdenv.lib.platforms.unix;
   };
 }