nixpkgs/pkgs/applications/kde/marble.nix

34 lines
1.1 KiB
Nix
Raw Normal View History

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