1 { lib, stdenv, fetchFromGitHub, libxml2, gtk2, curl, pkg-config }:
3 stdenv.mkDerivation rec {
5 version = "unstable-2014-03-17";
7 src = fetchFromGitHub {
8 owner = "openstreetmap";
10 rev = "89b1fbfbc9e9a8b5e78795fd40bdfa60550322fc";
11 sparseCheckout = [ "applications/rendering/gosmore" ];
12 hash = "sha256-MfuJVsyGWspGNAFD6Ktbbyawb4bPwUITe7WkyFs6JxI=";
15 sourceRoot = "${src.name}/applications/rendering/gosmore";
17 buildInputs = [ libxml2 gtk2 curl ];
19 nativeBuildInputs = [ pkg-config ];
22 sed -e '/curl.types.h/d' -i *.{c,h,hpp,cpp}
23 sed -e "24i #include <ctime>" -e "s/data/dat/g" -i jni/libgosm.cpp
26 patches = [ ./pointer_int_comparison.patch ];
27 patchFlags = [ "-p1" "--binary" ]; # patch has dos style eol
30 description = "Open Street Map viewer";
31 mainProgram = "gosmore";
32 homepage = "https://sourceforge.net/projects/gosmore/";
33 maintainers = with maintainers; [
36 platforms = platforms.linux;
37 license = licenses.bsd2;