summary refs log tree commit diff
path: root/pkgs/development/libraries/telepathy/glib/default.nix
blob: ee2f34776d66d7d72719d7fb97da5feee73e3f8d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ stdenv, fetchurl, dbus-glib, glib, python2, pkgconfig, libxslt
, gobject-introspection, vala, glibcLocales }:

stdenv.mkDerivation rec {
  name = "telepathy-glib-0.24.1";

  outputs = [ "out" "dev" ];

  src = fetchurl {
    url = "${meta.homepage}/releases/telepathy-glib/${name}.tar.gz";
    sha256 = "1symyzbjmxvksn2ifdkk50lafjm2llf2sbmky062gq2pz3cg23cy";
  };

  configureFlags = [
    "--enable-vala-bindings"
  ];
  LC_ALL = "en_US.UTF-8";
  propagatedBuildInputs = [ dbus-glib glib ];

  nativeBuildInputs = [ pkgconfig libxslt gobject-introspection vala ];
  buildInputs = [ glibcLocales python2 ];

  enableParallelBuilding = true;

  preConfigure = ''
    substituteInPlace telepathy-glib/telepathy-glib.pc.in --replace Requires.private Requires
  '';

  passthru.python = python2;

  meta = with stdenv.lib; {
    homepage = "https://telepathy.freedesktop.org";
    platforms = platforms.unix;
    license = with licenses; [ bsd2 bsd3 lgpl21Plus ];
  };
}