about summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/telepathy
diff options
context:
space:
mode:
authorRobert Schütz <nix@dotlambda.de>2022-11-25 09:30:47 -0800
committerRobert Schütz <nix@dotlambda.de>2022-11-25 10:40:22 -0800
commit8fbec14a71827220bbc9211c3a2a201f1ea9feb0 (patch)
tree92390418ce77da765edfa280dfa2bbc025ff9872 /pkgs/applications/networking/instant-messengers/telepathy
parenteed5d735b4d08fe3b4011539c5d1a1c0ee000dd9 (diff)
telepathy-logger: build using python3
Diffstat (limited to 'pkgs/applications/networking/instant-messengers/telepathy')
-rw-r--r--pkgs/applications/networking/instant-messengers/telepathy/logger/default.nix16
1 files changed, 13 insertions, 3 deletions
diff --git a/pkgs/applications/networking/instant-messengers/telepathy/logger/default.nix b/pkgs/applications/networking/instant-messengers/telepathy/logger/default.nix
index 1bf0e329073dd..ac03ee20ff95a 100644
--- a/pkgs/applications/networking/instant-messengers/telepathy/logger/default.nix
+++ b/pkgs/applications/networking/instant-messengers/telepathy/logger/default.nix
@@ -1,5 +1,7 @@
-{ lib, stdenv, fetchurl, dbus-glib, libxml2, sqlite, telepathy-glib, python2, pkg-config
-, dconf, makeWrapper, intltool, libxslt, gobject-introspection, dbus }:
+{ lib, stdenv, fetchurl, dbus-glib, libxml2, sqlite, telepathy-glib, python3, pkg-config
+, dconf, makeWrapper, intltool, libxslt, gobject-introspection, dbus
+, fetchpatch
+}:
 
 stdenv.mkDerivation rec {
   pname = "telepathy-logger";
@@ -10,12 +12,20 @@ stdenv.mkDerivation rec {
     sha256 = "1bjx85k7jyfi5pvl765fzc7q2iz9va51anrc2djv7caksqsdbjlg";
   };
 
+  patches = [
+    (fetchpatch {
+      url = "https://github.com/archlinux/svntogit-packages/raw/2b5bdbb4739d3517f5e7300edc8dab775743b96d/trunk/0001-tools-Fix-the-build-with-Python-3.patch";
+      hash = "sha256-o1lfdZIIqaxn7ntQZnoOMqquc6efTHgSIxB5dpFWRgg=";
+    })
+  ];
+
   nativeBuildInputs = [
     makeWrapper pkg-config intltool libxslt gobject-introspection
+    python3
   ];
   buildInputs = [
     dbus-glib libxml2 sqlite telepathy-glib
-    dbus python2
+    dbus
   ];
 
   configureFlags = [ "--enable-call" ];