2011-01-02 13:23:59 +00:00
|
|
|
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="http://folks.o-hand.com/jku/geoclue-releases/${name}.tar.gz";
|
|
|
|
hash="15j619kvmdgj2hpma92mkxbzjvgn8147a7500zl3bap9g8bkylqg";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchurl {
|
|
|
|
url = sourceInfo.url;
|
|
|
|
sha256 = sourceInfo.hash;
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit (sourceInfo) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
|
2011-01-02 15:13:36 +00:00
|
|
|
propagatedBuildInputs = [a.dbus a.glib a.dbus_glib];
|
|
|
|
|
2011-01-02 13:23:59 +00:00
|
|
|
/* doConfigure should be removed if not needed */
|
2012-02-27 08:18:11 +00:00
|
|
|
phaseNames = ["fixConfigure" "doConfigure" "doMakeInstall"];
|
2011-01-02 13:23:59 +00:00
|
|
|
|
2012-02-27 08:18:11 +00:00
|
|
|
fixConfigure = a.fullDepEntry ''
|
|
|
|
sed -e 's@-Werror@@' -i configure
|
|
|
|
'' ["minInit" "doUnpack"];
|
|
|
|
|
2011-01-02 13:23:59 +00:00
|
|
|
meta = {
|
|
|
|
description = "Geolocation framework and some data providers";
|
|
|
|
maintainers = with a.lib.maintainers;
|
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
|
|
|
linux;
|
2011-01-02 16:35:14 +00:00
|
|
|
license = a.lib.licenses.lgpl2;
|
2011-01-02 13:23:59 +00:00
|
|
|
};
|
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://folks.o-hand.com/jku/geoclue-releases/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}) x
|
|
|
|
|