···11-From aed93b6ada5b9b76b85d11d9bad732ca005295af Mon Sep 17 00:00:00 2001
11+From 21e5295a633c8c450629106c4603b78b2de7d786 Mon Sep 17 00:00:00 2001
22From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= <bjorn.forsman@gmail.com>
33Date: Sat, 15 Mar 2014 15:08:01 +0100
44Subject: [PATCH 2/2] Import XML_CATALOG_FILES to be able to validate the
···1212 1 file changed, 1 insertion(+)
13131414diff --git a/SConstruct b/SConstruct
1515-index 86b94bc..a0b3d25 100644
1515+index f73c87e..0d4b29d 100644
1616--- a/SConstruct
1717+++ b/SConstruct
1818-@@ -216,6 +216,7 @@ import_env = (
1919- 'STAGING_DIR', # Required by the OpenWRT and CeroWrt builds.
1818+@@ -221,6 +221,7 @@ import_env = (
2019 'STAGING_PREFIX', # Required by the OpenWRT and CeroWrt builds.
2020+ 'WRITE_PAD', # So we can test WRITE_PAD values on the fly.
2121 'LD_LIBRARY_PATH', # Allows running 'scons check' without 'chrpath'
2222+ 'XML_CATALOG_FILES', # Enables validating the manual with 'xmlto' using nix build system
2323 )
2424 envs = {}
2525 for var in import_env:
2626--
2727-1.9.0
2727+2.9.0
2828
+8-7
pkgs/servers/gpsd/default.nix
···88# TODO: put the X11 deps behind a guiSupport parameter for headless support
991010stdenv.mkDerivation rec {
1111- name = "gpsd-3.10";
1111+ name = "gpsd-3.16";
12121313 src = fetchurl {
1414 url = "http://download-mirror.savannah.gnu.org/releases/gpsd/${name}.tar.gz";
1515- sha256 = "0823hl5zgwnbgm0fq3i4z34lv76cpj0k6m0zjiygiyrxrz0w4vvh";
1515+ sha256 = "0a90ph4qrlz5kkcz2mwkfk3cmwy9fmglp94znz2y0gsd7bqrlmq3";
1616 };
17171818 nativeBuildInputs = [
···3434 patches = [
3535 ./0001-Import-LD_LIBRARY_PATH-to-allow-running-scons-check-.patch
3636 ./0002-Import-XML_CATALOG_FILES-to-be-able-to-validate-the-.patch
3737+3838+ # TODO: remove the patch with the next release
3939+ ./0001-Use-pkgconfig-for-dbus-library.patch
3740 ];
38413942 # - leapfetch=no disables going online at build time to fetch leap-seconds
4043 # info. See <gpsd-src>/build.txt for more info.
4141- # - chrpath=no stops the build from using 'chrpath' (which we don't have).
4242- # 'chrpath' is used to be able to run the tests from the source tree, but
4343- # we use $LD_LIBRARY_PATH instead.
4444 buildPhase = ''
4545 patchShebangs .
4646- sed -e "s|python_lib_dir = .*|python_lib_dir = \"$out/lib/${pythonPackages.python.libPrefix}/site-packages\"|" -i SConstruct
4646+ sed -e "s|systemd_dir = .*|systemd_dir = '$out/lib/systemd/system'|" -i SConstruct
4747 scons prefix="$out" leapfetch=no gpsd_user=${gpsdUser} gpsd_group=${gpsdGroup} \
4848- systemd=yes udevdir="$out/lib/udev" chrpath=no
4848+ systemd=yes udevdir="$out/lib/udev" \
4949+ python_libdir="$out/lib/${pythonPackages.python.libPrefix}/site-packages"
4950 '';
50515152 checkPhase = ''