summary refs log tree commit diff
path: root/pkgs/development/libraries/geoclue/default.nix
blob: 4c5d17eca997fbaa48fa6d73d0da6bec0d9f9a5f (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
x@{builderDefsPackage
  , dbus, dbus_glib, glib, pkgconfig, libxml2, gnome, libxslt
  , ...}:
builderDefsPackage
(a :  
let 
  helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 
    ["gnome"];

  buildInputs = map (n: builtins.getAttr n x)
    (builtins.attrNames (builtins.removeAttrs x helperArgNames))
    ++ [gnome.GConf];
  sourceInfo = rec {
    baseName="geoclue";
    version="0.12.0";
    name="${baseName}-${version}";
    url="https://launchpad.net/geoclue/trunk/0.12/+download/${name}.tar.gz";
    hash="15j619kvmdgj2hpma92mkxbzjvgn8147a7500zl3bap9g8bkylqg";
  };
in
rec {
  src = a.fetchurl {
    url = sourceInfo.url;
    sha256 = sourceInfo.hash;
  };

  inherit (sourceInfo) name version;
  inherit buildInputs;

  propagatedBuildInputs = [a.dbus a.glib a.dbus_glib];

  /* doConfigure should be removed if not needed */
  phaseNames = ["fixConfigure" "doConfigure" "doMakeInstall"];
      
  fixConfigure = a.fullDepEntry ''
    sed -e 's@-Werror@@' -i configure
  '' ["minInit" "doUnpack"];

  meta = {
    description = "Geolocation framework and some data providers";
    maintainers = with a.lib.maintainers;
    [
      raskin
    ];
    platforms = with a.lib.platforms;
      linux;
    license = a.lib.licenses.lgpl2;
  };
  passthru = {
    updateInfo = {
      downloadPage = "http://folks.o-hand.com/jku/geoclue-releases/";
    };
  };
}) x