summary refs log tree commit diff
path: root/pkgs/development/libraries/geoclue/default.nix
blob: bf0af502d017c7ac65a418b7a208b6a7a1e3f848 (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, dbus-glib, glib, pkgconfig, libxml2, gnome2,
  libxslt, glib-networking }:

stdenv.mkDerivation rec {
  name = "geoclue-0.12.0";
  src = fetchurl {
    url = "https://launchpad.net/geoclue/trunk/0.12/+download/${name}.tar.gz";
    sha256 = "15j619kvmdgj2hpma92mkxbzjvgn8147a7500zl3bap9g8bkylqg";
  };

  outputs = [ "out" "dev" ];

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ libxml2 gnome2.GConf libxslt glib-networking ];

  propagatedBuildInputs = [dbus glib dbus-glib];

  hardeningDisable = [ "format" ];

  preConfigure = ''
    sed -e '/-Werror/d' -i configure
  '';

  meta = with stdenv.lib; {
    description = "Geolocation framework and some data providers";
    maintainers = with maintainers; [ raskin ];
    platforms = platforms.linux;
    license = licenses.lgpl2;
  };

  passthru = {
    updateInfo = {
      downloadPage = "http://folks.o-hand.com/jku/geoclue-releases/";
    };
  };
}