2022-11-25 17:30:47 +00:00
|
|
|
{ lib, stdenv, fetchurl, dbus-glib, libxml2, sqlite, telepathy-glib, python3, pkg-config
|
|
|
|
, dconf, makeWrapper, intltool, libxslt, gobject-introspection, dbus
|
|
|
|
, fetchpatch
|
|
|
|
}:
|
2012-03-28 19:23:42 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-07-12 10:51:53 +00:00
|
|
|
pname = "telepathy-logger";
|
|
|
|
version = "0.8.2";
|
2012-03-28 19:23:42 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-07-12 10:51:53 +00:00
|
|
|
url = "https://telepathy.freedesktop.org/releases/telepathy-logger/telepathy-logger-${version}.tar.bz2";
|
2018-05-07 19:47:26 +00:00
|
|
|
sha256 = "1bjx85k7jyfi5pvl765fzc7q2iz9va51anrc2djv7caksqsdbjlg";
|
2012-03-28 19:23:42 +00:00
|
|
|
};
|
|
|
|
|
2022-11-25 17:30:47 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/archlinux/svntogit-packages/raw/2b5bdbb4739d3517f5e7300edc8dab775743b96d/trunk/0001-tools-Fix-the-build-with-Python-3.patch";
|
|
|
|
hash = "sha256-o1lfdZIIqaxn7ntQZnoOMqquc6efTHgSIxB5dpFWRgg=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-12-18 03:58:21 +00:00
|
|
|
nativeBuildInputs = [
|
2021-01-17 02:09:27 +00:00
|
|
|
makeWrapper pkg-config intltool libxslt gobject-introspection
|
2022-11-25 17:30:47 +00:00
|
|
|
python3
|
2017-12-18 03:58:21 +00:00
|
|
|
];
|
|
|
|
buildInputs = [
|
2018-02-25 02:23:58 +00:00
|
|
|
dbus-glib libxml2 sqlite telepathy-glib
|
2022-11-25 17:30:47 +00:00
|
|
|
dbus
|
2017-12-18 03:58:21 +00:00
|
|
|
];
|
2012-03-28 19:23:42 +00:00
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
configureFlags = [ "--enable-call" ];
|
2012-03-28 19:23:42 +00:00
|
|
|
|
2017-07-24 04:24:11 +00:00
|
|
|
preFixup = ''
|
|
|
|
wrapProgram "$out/libexec/telepathy-logger" \
|
2021-01-15 05:42:41 +00:00
|
|
|
--prefix GIO_EXTRA_MODULES : "${lib.getLib dconf}/lib/gio/modules" \
|
2017-07-24 04:24:11 +00:00
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2012-03-28 19:23:42 +00:00
|
|
|
description = "Logger service for Telepathy framework";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://telepathy.freedesktop.org/components/telepathy-logger/";
|
2017-12-18 03:58:21 +00:00
|
|
|
license = licenses.lgpl21;
|
2022-10-26 18:54:26 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-04-30 22:43:54 +00:00
|
|
|
platforms = platforms.gnu ++ platforms.linux; # Arbitrary choice
|
2012-03-28 19:23:42 +00:00
|
|
|
};
|
|
|
|
}
|