nixpkgs-suyu/pkgs/applications/kde/marble.nix

34 lines
1.1 KiB
Nix
Raw Normal View History

2017-05-16 17:56:41 +02:00
{ mkDerivation, lib
2017-05-17 21:26:11 +02:00
, extra-cmake-modules, kdoctools
, qtscript, qtsvg, qtquickcontrols, qtwebengine
, krunner, shared-mime-info, kparts, knewstuff
2021-10-04 21:33:44 +02:00
, gpsd, perl, fetchpatch
2016-09-04 21:29:34 +02:00
}:
2017-05-16 17:56:41 +02:00
mkDerivation {
2020-12-25 00:05:07 +01:00
pname = "marble";
meta = {
homepage = "https://apps.kde.org/marble/";
description = "Virtual globe";
license = with lib.licenses; [ lgpl21 gpl3 ];
};
2018-10-08 21:20:34 +02:00
outputs = [ "out" "dev" ];
2017-05-17 21:26:11 +02:00
nativeBuildInputs = [ extra-cmake-modules kdoctools perl ];
2017-05-16 17:56:41 +02:00
propagatedBuildInputs = [
qtscript qtsvg qtquickcontrols qtwebengine shared-mime-info krunner kparts
2017-05-16 17:56:41 +02:00
knewstuff gpsd
];
2021-10-04 21:33:44 +02: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=";
})
];
preConfigure = ''
cmakeFlags+=" -DINCLUDE_INSTALL_DIR=''${!outputDev}/include"
'';
2016-09-04 21:29:34 +02:00
}