diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2011-01-02 13:23:59 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2011-01-02 13:23:59 +0000 |
commit | 03419cfc5a96682797a4f3fcc462c22a12c89bca (patch) | |
tree | eae79c38ab8a82e3b9cf9c8a5d0ca10ec7491f65 /pkgs/development/libraries/geoclue | |
parent | 1653e6ac5abc2c300c4e0a88cf2c91f00b8df13f (diff) | |
download | nixpkgs-03419cfc5a96682797a4f3fcc462c22a12c89bca.tar nixpkgs-03419cfc5a96682797a4f3fcc462c22a12c89bca.tar.gz nixpkgs-03419cfc5a96682797a4f3fcc462c22a12c89bca.tar.bz2 nixpkgs-03419cfc5a96682797a4f3fcc462c22a12c89bca.tar.lz nixpkgs-03419cfc5a96682797a4f3fcc462c22a12c89bca.tar.xz nixpkgs-03419cfc5a96682797a4f3fcc462c22a12c89bca.tar.zst nixpkgs-03419cfc5a96682797a4f3fcc462c22a12c89bca.zip |
Adding geoclue - as framework only, feel free to build it with proper data providers if you have a reason for that
svn path=/nixpkgs/trunk/; revision=25335
Diffstat (limited to 'pkgs/development/libraries/geoclue')
-rw-r--r-- | pkgs/development/libraries/geoclue/default.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/development/libraries/geoclue/default.nix b/pkgs/development/libraries/geoclue/default.nix new file mode 100644 index 00000000000..dcf3cd17893 --- /dev/null +++ b/pkgs/development/libraries/geoclue/default.nix @@ -0,0 +1,49 @@ +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; + + /* doConfigure should be removed if not needed */ + phaseNames = ["doConfigure" "doMakeInstall"]; + + meta = { + description = "Geolocation framework and some data providers"; + maintainers = with a.lib.maintainers; + [ + raskin + ]; + platforms = with a.lib.platforms; + linux; + license = a.lib.licenses.lglp2; + }; + passthru = { + updateInfo = { + downloadPage = "http://folks.o-hand.com/jku/geoclue-releases/"; + }; + }; +}) x + |