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