summary refs log tree commit diff
path: root/pkgs/servers/gpsd
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2009-05-31 11:29:42 +0000
committerLudovic Courtès <ludo@gnu.org>2009-05-31 11:29:42 +0000
commit1660db54ff5ad77dce862134e2e307cbce3f378f (patch)
treeb1b200e09b519d7324c062d12b2b3daa5ab3b0d0 /pkgs/servers/gpsd
parentd7e96a4e5869e9388dd87f76f8e70df636007979 (diff)
downloadnixpkgs-1660db54ff5ad77dce862134e2e307cbce3f378f.tar
nixpkgs-1660db54ff5ad77dce862134e2e307cbce3f378f.tar.gz
nixpkgs-1660db54ff5ad77dce862134e2e307cbce3f378f.tar.bz2
nixpkgs-1660db54ff5ad77dce862134e2e307cbce3f378f.tar.lz
nixpkgs-1660db54ff5ad77dce862134e2e307cbce3f378f.tar.xz
nixpkgs-1660db54ff5ad77dce862134e2e307cbce3f378f.tar.zst
nixpkgs-1660db54ff5ad77dce862134e2e307cbce3f378f.zip
Add `gpsd', a GPS service daemon.
svn path=/nixpkgs/trunk/; revision=15809
Diffstat (limited to 'pkgs/servers/gpsd')
-rw-r--r--pkgs/servers/gpsd/default.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/servers/gpsd/default.nix b/pkgs/servers/gpsd/default.nix
new file mode 100644
index 00000000000..523a126e939
--- /dev/null
+++ b/pkgs/servers/gpsd/default.nix
@@ -0,0 +1,47 @@
+{ fetchurl, stdenv, python, pkgconfig, dbus, dbus_glib
+, ncurses, libXt, libXpm, libxslt, xmlto, gpsdUser ? "gpsd" }:
+
+stdenv.mkDerivation rec {
+  name = "gpsd-2.39";
+
+  src = fetchurl {
+    url = "http://download.berlios.de/gpsd/${name}.tar.gz";
+    sha256 = "089ahf97dhws3sk8nc88687h4ny2rlavkzg4wxqkhb0i0fs2yfzf";
+  };
+
+  buildInputs = [
+    python pkgconfig dbus dbus_glib ncurses libXt libXpm
+    libxslt xmlto
+  ];
+
+  configureFlags = "--enable-dbus --enable-gpsd-user=${gpsdUser}";
+
+  doCheck = true;
+
+  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";
+  };
+}