about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/telepathy/glib/default.nix
blob: e1510fca92a69796de23168c261412b00b48027a (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{ lib
, stdenv
, fetchurl
, dbus-glib
, glib
, python3
, pkg-config
, libxslt
, gobject-introspection
, vala
, glibcLocales
}:

stdenv.mkDerivation rec {
  pname = "telepathy-glib";
  version = "0.24.2";

  outputs = [ "out" "dev" ];

  src = fetchurl {
    url = "${meta.homepage}/releases/telepathy-glib/${pname}-${version}.tar.gz";
    sha256 = "sKN013HN0IESXzjDq9B5ZXZCMBxxpUPVVeK/IZGSc/A=";
  };

  strictDeps = true;
  nativeBuildInputs = [
    pkg-config
    libxslt
    gobject-introspection
    vala
    python3
  ];

  buildInputs = [
    glibcLocales
  ];

  propagatedBuildInputs = [
    dbus-glib
    glib
  ];

  configureFlags = [
    "--enable-vala-bindings"
  ];

  LC_ALL = "en_US.UTF-8";

  enableParallelBuilding = true;

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

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