1x@{builderDefsPackage
2 , dbus, dbus_glib, glib, pkgconfig, libxml2, gnome, libxslt
3 , ...}:
4builderDefsPackage
5(a :
6let
7 helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
8 ["gnome"];
9
10 buildInputs = map (n: builtins.getAttr n x)
11 (builtins.attrNames (builtins.removeAttrs x helperArgNames))
12 ++ [gnome.GConf];
13 sourceInfo = rec {
14 baseName="geoclue";
15 version="0.12.0";
16 name="${baseName}-${version}";
17 url="https://launchpad.net/geoclue/trunk/0.12/+download/${name}.tar.gz";
18 hash="15j619kvmdgj2hpma92mkxbzjvgn8147a7500zl3bap9g8bkylqg";
19 };
20in
21rec {
22 src = a.fetchurl {
23 url = sourceInfo.url;
24 sha256 = sourceInfo.hash;
25 };
26
27 inherit (sourceInfo) name version;
28 inherit buildInputs;
29
30 propagatedBuildInputs = [a.dbus a.glib a.dbus_glib];
31
32 /* doConfigure should be removed if not needed */
33 phaseNames = ["fixConfigure" "doConfigure" "doMakeInstall"];
34
35 fixConfigure = a.fullDepEntry ''
36 sed -e 's@-Werror@@' -i configure
37 '' ["minInit" "doUnpack"];
38
39 meta = {
40 description = "Geolocation framework and some data providers";
41 maintainers = with a.lib.maintainers;
42 [
43 raskin
44 ];
45 platforms = with a.lib.platforms;
46 linux;
47 license = a.lib.licenses.lgpl2;
48 };
49 passthru = {
50 updateInfo = {
51 downloadPage = "http://folks.o-hand.com/jku/geoclue-releases/";
52 };
53 };
54}) x
55