1 { lib, stdenv, fetchFromGitHub, libroxml, proj_7, yaml-cpp_0_3, boost } :
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
8 sha256 = "1d3f18wzk240yp0q8i2vskhcfj5ar61s4hw83vgps0wr2aglph3w";
15 "GIT_VERSION=${version}"
17 "SHAREDIR=${placeholder "out"}/share/osm2xmap/"
18 "INSTALL_BINDIR=${placeholder "out"}/bin"
19 "INSTALL_MANDIR=${placeholder "out"}/share/man/man1"
22 env.NIX_CFLAGS_COMPILE = "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H";
24 buildInputs = [ libroxml proj_7 yaml-cpp_0_3 boost ];
27 homepage = "https://github.com/sembruk/osm2xmap";
28 description = "Converter from OpenStreetMap data format to OpenOrienteering Mapper format";
29 license = licenses.gpl3;
30 maintainers = [ maintainers.mpickering ];
31 platforms = with lib.platforms; linux;
32 mainProgram = "osm2xmap";