Merge pull request #140523 from hjones2199/gpsd-fixes
This commit is contained in:
commit
9e016672b1
2 changed files with 24 additions and 7 deletions
|
@ -2,7 +2,7 @@
|
|||
, extra-cmake-modules, kdoctools
|
||||
, qtscript, qtsvg, qtquickcontrols, qtwebengine
|
||||
, krunner, shared-mime-info, kparts, knewstuff
|
||||
, gpsd, perl
|
||||
, gpsd, perl, fetchpatch
|
||||
}:
|
||||
|
||||
mkDerivation {
|
||||
|
@ -18,6 +18,15 @@ mkDerivation {
|
|||
qtscript qtsvg qtquickcontrols qtwebengine shared-mime-info krunner kparts
|
||||
knewstuff gpsd
|
||||
];
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
# Backport fix to allow compilation with gpsd 3.23.1
|
||||
# Remove when marble compiles without the patch.
|
||||
# See: https://invent.kde.org/education/marble/-/merge_requests/57
|
||||
url = "https://invent.kde.org/education/marble/-/commit/8aadc3eb8f9484a65d497d442cd8c61fe1462bef.diff";
|
||||
sha256 = "sha256-ZkPXyunVItSRctv6SLGIonvyZwLDhCz+wfJrIXeHcDo=";
|
||||
})
|
||||
];
|
||||
preConfigure = ''
|
||||
cmakeFlags+=" -DINCLUDE_INSTALL_DIR=''${!outputDev}/include"
|
||||
'';
|
||||
|
|
|
@ -6,8 +6,8 @@ let
|
|||
srcs = {
|
||||
foxtrot = fetchbzr {
|
||||
url = "lp:foxtrotgps";
|
||||
rev = "329";
|
||||
sha256 = "0fwgnsrah63h1xdgm5xdi5ancrz89shdp5sdzw1qc1m7i9a03rid";
|
||||
rev = "331";
|
||||
sha256 = "sha256-/kJv6a3MzAzzwIl98Mqi7jrUJC1kDvouigf9kGtv868=";
|
||||
};
|
||||
screenshots = fetchbzr {
|
||||
url = "lp:foxtrotgps/screenshots";
|
||||
|
@ -17,7 +17,7 @@ let
|
|||
};
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "foxtrotgps";
|
||||
version = "1.2.2+329";
|
||||
version = "1.2.2+331";
|
||||
|
||||
# Pull directly from bzr because gpsd API version 9 is not supported on latest release
|
||||
src = srcs.foxtrot;
|
||||
|
@ -39,12 +39,20 @@ in stdenv.mkDerivation rec {
|
|||
];
|
||||
|
||||
postUnpack = ''
|
||||
cp -R ${srcs.screenshots} $sourceRoot/doc/screenshots
|
||||
chmod -R u+w $sourceRoot/doc/screenshots
|
||||
cp -R ${srcs.screenshots} $sourceRoot/doc/screenshots
|
||||
chmod -R u+w $sourceRoot/doc/screenshots
|
||||
'';
|
||||
|
||||
# Remove when foxtrotgps supports gpsd 3.23.1
|
||||
# Patch for compatibility with gpsd 3.23.1. This was added for foxtrotgps
|
||||
# 1.2.2+331. The command can be removed if the build of a newer version
|
||||
# succeeds without it.
|
||||
postPatch = ''
|
||||
substituteInPlace src/gps_functions.c --replace "STATUS_NO_FIX" "STATUS_UNK"
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
intltoolize --automake --copy --force
|
||||
intltoolize --automake --copy --force
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue