2020-04-24 23:36:52 +00:00
|
|
|
{ mkDerivation, lib
|
|
|
|
, extra-cmake-modules, kdoctools
|
2020-08-20 17:08:02 +00:00
|
|
|
, qtscript, qtsvg, qtquickcontrols, qtwebengine
|
2020-04-24 23:36:52 +00:00
|
|
|
, krunner, shared-mime-info, kparts, knewstuff
|
2021-10-07 14:46:35 +00:00
|
|
|
, gpsd, perl, fetchpatch
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation {
|
2021-01-05 17:05:55 +00:00
|
|
|
pname = "marble";
|
2021-09-28 08:13:01 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "https://apps.kde.org/marble/";
|
|
|
|
description = "Virtual globe";
|
|
|
|
license = with lib.licenses; [ lgpl21 gpl3 ];
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools perl ];
|
|
|
|
propagatedBuildInputs = [
|
2020-08-20 17:08:02 +00:00
|
|
|
qtscript qtsvg qtquickcontrols qtwebengine shared-mime-info krunner kparts
|
2020-04-24 23:36:52 +00:00
|
|
|
knewstuff gpsd
|
|
|
|
];
|
2021-10-07 14:46:35 +00:00
|
|
|
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=";
|
|
|
|
})
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
preConfigure = ''
|
|
|
|
cmakeFlags+=" -DINCLUDE_INSTALL_DIR=''${!outputDev}/include"
|
|
|
|
'';
|
|
|
|
}
|