summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorR. RyanTM <ryantm-bot@ryantm.com>2021-08-09 03:10:51 +0000
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2021-08-10 12:18:35 +0000
commitbb5548940e18a4b6324b468136b9934d44805899 (patch)
treeaeb78d0ca1ba6b666a8e45142d9fd18b857cea2b
parentMerge #132834: go security bumps (into release-21.05) (diff)
downloadnixpkgs-bb5548940e18a4b6324b468136b9934d44805899.tar.gz
gpsd: 3.22 -> 3.23
Clean up unnecessary dependencies, update license. Add todo to generate asciidoctor documentation. (cherry picked from commit 65db4268d056afefac988705bae2f65651b1f7c2)
-rw-r--r--pkgs/servers/gpsd/default.nix78
1 files changed, 55 insertions, 23 deletions
diff --git a/pkgs/servers/gpsd/default.nix b/pkgs/servers/gpsd/default.nix
index 62b711af67a0..d6f7fbea3ded 100644
--- a/pkgs/servers/gpsd/default.nix
+++ b/pkgs/servers/gpsd/default.nix
@@ -1,40 +1,71 @@
-{ stdenv, lib ,fetchurl, scons, pkg-config, dbus, ncurses
-, libusb1, docbook_xml_dtd_412, docbook_xsl, bc
+{ stdenv
+, lib
+, fetchurl
-# optional deps for GUI packages
-, guiSupport ? true
-, dbus-glib ? null, libX11 ? null, libXt ? null, libXpm ? null, libXaw ? null, libXext ? null
-, gobject-introspection ? null, pango ? null, gdk-pixbuf ? null, atk ? null, wrapGAppsHook ? null
+# nativeBuildInputs
+, scons
+, pkg-config
-, libxslt, xmlto, gpsdUser ? "gpsd", gpsdGroup ? "dialout"
+# buildInputs
+, dbus
+, libusb1
+, ncurses
, pps-tools
, python3Packages
-}:
+# optional deps for GUI packages
+, guiSupport ? true
+, dbus-glib ? null
+, libX11 ? null
+, libXt ? null
+, libXpm ? null
+, libXaw ? null
+, libXext ? null
+, gobject-introspection ? null
+, pango ? null
+, gdk-pixbuf ? null
+, atk ? null
+, wrapGAppsHook ? null
+
+, gpsdUser ? "gpsd", gpsdGroup ? "dialout"
+}:
stdenv.mkDerivation rec {
pname = "gpsd";
- version = "3.22";
+ version = "3.23";
src = fetchurl {
url = "mirror://savannah/${pname}/${pname}-${version}.tar.gz";
- sha256 = "18rplv1cd76ndb2wc91jarjmfm2nk508pykv1hir79bqbwmdygvq";
+ sha256 = "sha256-UiwjYqfrLXrDfqoVBPEq3tHDc0eah7oGzGeVl0tWe7w=";
};
+ # TODO: render & install HTML documentation using asciidoctor
nativeBuildInputs = [
- scons pkg-config docbook_xml_dtd_412 docbook_xsl xmlto bc
- python3Packages.python
+ pkg-config
python3Packages.wrapPython
- ]
- ++ lib.optionals guiSupport [ wrapGAppsHook gobject-introspection ];
+ scons
+ ] ++ lib.optionals guiSupport [
+ gobject-introspection
+ wrapGAppsHook
+ ];
buildInputs = [
- python3Packages.python dbus ncurses
- libxslt libusb1 pps-tools
- ]
- ++ lib.optionals guiSupport [
- dbus-glib libX11 libXt libXpm libXaw libXext
- gobject-introspection pango gdk-pixbuf atk
+ dbus
+ libusb1
+ ncurses
+ pps-tools
+ python3Packages.python
+ ] ++ lib.optionals guiSupport [
+ atk
+ dbus-glib
+ gdk-pixbuf
+ gobject-introspection
+ libX11
+ libXaw
+ libXext
+ libXpm
+ libXt
+ pango
];
pythonPath = lib.optionals guiSupport [
@@ -46,8 +77,6 @@ stdenv.mkDerivation rec {
./sconstruct-env-fixes.patch
];
- # - leapfetch=no disables going online at build time to fetch leap-seconds
- # info. See <gpsd-src>/build.txt for more info.
preBuild = ''
patchShebangs .
sed -e "s|systemd_dir = .*|systemd_dir = '$out/lib/systemd/system'|" -i SConscript
@@ -57,6 +86,8 @@ stdenv.mkDerivation rec {
sconsFlags+=" python_libdir=$out/lib/${python3Packages.python.libPrefix}/site-packages"
'';
+ # - leapfetch=no disables going online at build time to fetch leap-seconds
+ # info. See <gpsd-src>/build.txt for more info.
sconsFlags = [
"leapfetch=no"
"gpsd_user=${gpsdUser}"
@@ -73,6 +104,7 @@ stdenv.mkDerivation rec {
preInstall = ''
mkdir -p "$out/lib/udev/rules.d"
'';
+
installTargets = [ "install" "udev-install" ];
# remove binaries for x-less install because xgps sconsflag is partially broken
@@ -103,7 +135,7 @@ stdenv.mkDerivation rec {
'';
homepage = "https://gpsd.gitlab.io/gpsd/index.html";
changelog = "https://gitlab.com/gpsd/gpsd/-/blob/release-${version}/NEWS";
- license = licenses.bsd3;
+ license = licenses.bsd2;
platforms = platforms.linux;
maintainers = with maintainers; [ bjornfor rasendubi ];
};