summary refs log tree commit diff
path: root/pkgs/development/libraries/zeitgeist
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2016-11-18 16:39:22 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2016-11-24 22:28:04 +0100
commitcd7e72a597fed9e4516d3f1e6426c0a8390ac107 (patch)
treeb4d2c17a4aef9d89467736f4f7ebb34a7a39898b /pkgs/development/libraries/zeitgeist
parent2bac076931c304741534acf4665f298a2943963a (diff)
zeitgeist: python bindings at pythonPackages.zeitgeist
Diffstat (limited to 'pkgs/development/libraries/zeitgeist')
-rw-r--r--pkgs/development/libraries/zeitgeist/default.nix15
1 files changed, 12 insertions, 3 deletions
diff --git a/pkgs/development/libraries/zeitgeist/default.nix b/pkgs/development/libraries/zeitgeist/default.nix
index bb6af73356dea..252bcd02faff3 100644
--- a/pkgs/development/libraries/zeitgeist/default.nix
+++ b/pkgs/development/libraries/zeitgeist/default.nix
@@ -1,6 +1,8 @@
 { stdenv, fetchurl, pkgconfig, glib, sqlite, gnome3, vala_0_23
-, intltool, libtool, python, dbus_libs, telepathy_glib
-, gtk3, json_glib, librdf_raptor2, python2Packages, dbus_glib }:
+, intltool, libtool, dbus_libs, telepathy_glib
+, gtk3, json_glib, librdf_raptor2, dbus_glib
+, pythonSupport ? true, python2Packages
+}:
 
 stdenv.mkDerivation rec {
   version = "0.9.15";
@@ -18,7 +20,7 @@ stdenv.mkDerivation rec {
   configureFlags = [ "--with-session-bus-services-dir=$(out)/share/dbus-1/services" ];
 
   buildInputs = [ pkgconfig glib sqlite gnome3.gnome_common intltool
-                  libtool python dbus_libs telepathy_glib vala_0_23 dbus_glib
+                  libtool dbus_libs telepathy_glib vala_0_23 dbus_glib
                   gtk3 json_glib librdf_raptor2 python2Packages.rdflib ];
 
   prePatch = "patchShebangs .";
@@ -29,6 +31,13 @@ stdenv.mkDerivation rec {
 
   enableParallelBuilding = true;
 
+  postFixup = ''
+  '' + stdenv.lib.optionalString pythonSupport ''
+    moveToOutput lib/${python2Packages.python.libPrefix} "$py"
+  '';
+
+  outputs = [ "out" ] ++ stdenv.lib.optional pythonSupport "py";
+
   meta = with stdenv.lib; {
     description = "A service which logs the users's activities and events";
     homepage = https://launchpad.net/zeitgeist;