2011-03-29 19:19:59 +04:00
|
|
|
{ fetchurl, stdenv, pythonPackages, pkgconfig, dbus, dbus_glib
|
2011-06-08 01:51:13 +04:00
|
|
|
, ncurses, libX11, libXt, libXpm, libXaw, libXext, makeWrapper
|
|
|
|
, libusb1, docbook_xml_dtd_412, docbook_xsl, bc
|
2011-03-29 19:19:59 +04:00
|
|
|
, libxslt, xmlto, gpsdUser ? "gpsd" }:
|
2009-05-31 15:29:42 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2011-06-08 01:51:13 +04:00
|
|
|
name = "gpsd-2.95";
|
2009-05-31 15:29:42 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.berlios.de/gpsd/${name}.tar.gz";
|
2011-06-08 01:51:13 +04:00
|
|
|
sha256 = "1bjhyjg561kwp6zc2wg58njdvpnsj5yaa2slz8g3ga1176jl68w3";
|
2009-05-31 15:29:42 +04:00
|
|
|
};
|
|
|
|
|
2011-06-08 01:51:13 +04:00
|
|
|
buildNativeInputs = [ makeWrapper pkgconfig docbook_xml_dtd_412 docbook_xsl
|
|
|
|
xmlto bc pythonPackages.wrapPython ];
|
2009-05-31 15:29:42 +04:00
|
|
|
|
2011-03-28 21:19:27 +04:00
|
|
|
pythonPath = [ pythonPackages.curses ];
|
2009-06-01 04:03:08 +04:00
|
|
|
|
2011-06-08 01:51:13 +04:00
|
|
|
buildInputs = [ pythonPackages.python dbus dbus_glib ncurses libX11 libXt
|
|
|
|
libXpm libXaw libXext libxslt libusb1 ];
|
|
|
|
|
|
|
|
configureFlags = "--enable-static --enable-dbus --enable-gpsd-user=${gpsdUser}";
|
2009-05-31 15:29:42 +04:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2011-03-28 21:19:27 +04:00
|
|
|
postInstall = "wrapPythonPrograms";
|
2009-06-01 04:03:08 +04:00
|
|
|
|
2009-05-31 15:29:42 +04:00
|
|
|
meta = {
|
|
|
|
description = "`gpsd', a GPS service daemon";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
gpsd is a service daemon that monitors one or more GPSes
|
|
|
|
attached to a host computer through serial or USB ports, making
|
|
|
|
all data on the location/course/velocity of the sensors
|
|
|
|
available to be queried on TCP port 2947 of the host computer.
|
|
|
|
With gpsd, multiple GPS client applications (such as
|
|
|
|
navigational and wardriving software) can share access to GPSes
|
|
|
|
without contention or loss of data. Also, gpsd responds to
|
|
|
|
queries with a format that is substantially easier to parse than
|
|
|
|
the NMEA 0183 emitted by most GPSes. The gpsd distribution
|
|
|
|
includes a linkable C service library, a C++ wrapper class, and
|
|
|
|
a Python module that developers of gpsd-aware applications can
|
|
|
|
use to encapsulate all communication with gpsd.
|
|
|
|
|
|
|
|
Besides gpsd itself, the project provides auxiliary tools for
|
|
|
|
diagnostic monitoring and profiling of GPSes and feeding
|
|
|
|
GPS-aware applications GPS logs for diagnostic purposes.
|
|
|
|
'';
|
|
|
|
|
|
|
|
homepage = http://gpsd.berlios.de/;
|
|
|
|
|
|
|
|
license = "BSD-style";
|
|
|
|
};
|
|
|
|
}
|