2019-06-17 17:00:42 +01:00
|
|
|
{ stdenv, fetchFromGitHub, makeWrapper, qmake, pkgconfig, boost, gdal, proj
|
2019-11-11 23:30:24 +00:00
|
|
|
, qtbase, qtsvg, qtwebview, qtwebkit }:
|
2010-06-13 20:32:04 +01:00
|
|
|
|
2011-05-08 10:35:37 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "merkaartor";
|
2019-11-14 10:49:01 +00:00
|
|
|
version = "unstable-2019-11-12";
|
2016-06-26 08:03:58 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openstreetmap";
|
|
|
|
repo = "merkaartor";
|
2019-11-14 10:49:01 +00:00
|
|
|
rev = "29b3388680a03f1daac0037a2b504ea710da879a";
|
|
|
|
sha256 = "0h3d3srzl06p2ajq911j05zr4vkl88qij18plydx45yqmvyvh0xz";
|
2010-06-13 20:32:04 +01:00
|
|
|
};
|
|
|
|
|
2019-06-17 17:00:42 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper qmake pkgconfig ];
|
2010-06-13 20:32:04 +01:00
|
|
|
|
2019-11-11 23:30:24 +00:00
|
|
|
buildInputs = [ boost gdal proj qtbase qtsvg qtwebview qtwebkit ];
|
2016-04-17 00:33:35 +01:00
|
|
|
|
2017-10-01 02:22:41 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-10-30 11:34:47 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H";
|
2019-07-11 12:58:46 +01:00
|
|
|
|
2019-06-17 17:00:42 +01:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/merkaartor \
|
|
|
|
--set QT_QPA_PLATFORM_PLUGIN_PATH ${qtbase.bin}/lib/qt-*/plugins/platforms
|
|
|
|
'';
|
|
|
|
|
2017-10-01 02:22:41 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "OpenStreetMap editor";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://merkaartor.be/";
|
2017-10-01 02:22:41 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2018-07-22 20:50:19 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2010-06-13 20:32:04 +01:00
|
|
|
};
|
|
|
|
}
|