1 { lib, stdenv, fetchsvn, libxml2, gtk2, curl, pkg-config } :
3 stdenv.mkDerivation rec {
6 # the gosmore svn repository does not lock revision numbers of its externals
7 # so we explicitly disable them to avoid breaking the hash
8 # especially as the externals appear to be unused
10 url = "http://svn.openstreetmap.org/applications/rendering/gosmore";
11 sha256 = "0qsckpqx7i7f8gkqhkzdamr65250afk1rpnh3nbman35kdv3dsxi";
13 ignoreExternals = true;
16 buildInputs = [ libxml2 gtk2 curl ];
18 nativeBuildInputs = [ pkg-config ];
21 sed -e '/curl.types.h/d' -i *.{c,h,hpp,cpp}
24 patches = [ ./pointer_int_comparison.patch ];
25 patchFlags = [ "-p1" "--binary" ]; # patch has dos style eol
28 description = "Open Street Map viewer";
29 homepage = "https://sourceforge.net/projects/gosmore/";
30 maintainers = with maintainers; [
33 platforms = platforms.linux;
34 license = licenses.bsd2;