13 withGpsdlib ? (!stdenv.hostPlatform.isDarwin),
21 stdenv.mkDerivation rec {
25 src = fetchFromGitHub {
26 owner = "openstreetmap";
29 hash = "sha256-oxLGhIE1qJ9+GOztD1HvrLGRGVO3gyy7Rc6CyzKTFec=";
48 ++ lib.optional withGeoimage exiv2
49 ++ lib.optional withGpsdlib gpsd
50 ++ lib.optional withLibproxy libproxy
51 ++ lib.optional withZbar zbar;
54 (lib.cmakeBool "GEOIMAGE" withGeoimage)
55 (lib.cmakeBool "GPSD" withGpsdlib)
56 (lib.cmakeBool "LIBPROXY" withLibproxy)
57 (lib.cmakeBool "WEBENGINE" true)
58 (lib.cmakeBool "ZBAR" withZbar)
61 postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
62 mkdir -p $out/{Applications,bin}
63 mv $out/merkaartor.app $out/Applications
64 # Prevent wrapping, otherwise plugins will not be loaded
65 chmod -x $out/Applications/merkaartor.app/Contents/plugins/background/*.dylib
66 makeWrapper $out/{Applications/merkaartor.app/Contents/MacOS,bin}/merkaartor
70 description = "OpenStreetMap editor";
71 homepage = "http://merkaartor.be/";
72 license = lib.licenses.gpl2Plus;
73 mainProgram = "merkaartor";
74 maintainers = with lib.maintainers; [ sikmir ];
75 platforms = lib.platforms.unix;