blob: daa5553d0c0aef45d29ac5b80bd0092a8a3f5767 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{ lib, stdenv, fetchFromGitHub, libxml2, gtk2, curl, pkg-config }:
stdenv.mkDerivation rec {
pname = "gosmore";
version = "unstable-2014-03-17";
src = fetchFromGitHub {
owner = "openstreetmap";
repo = "svn-archive";
rev = "89b1fbfbc9e9a8b5e78795fd40bdfa60550322fc";
sparseCheckout = [ "applications/rendering/gosmore" ];
hash = "sha256-MfuJVsyGWspGNAFD6Ktbbyawb4bPwUITe7WkyFs6JxI=";
};
sourceRoot = "${src.name}/applications/rendering/gosmore";
buildInputs = [ libxml2 gtk2 curl ];
nativeBuildInputs = [ pkg-config ];
prePatch = ''
sed -e '/curl.types.h/d' -i *.{c,h,hpp,cpp}
sed -e "24i #include <ctime>" -e "s/data/dat/g" -i jni/libgosm.cpp
'';
patches = [ ./pointer_int_comparison.patch ];
patchFlags = [ "-p1" "--binary" ]; # patch has dos style eol
meta = with lib; {
description = "Open Street Map viewer";
mainProgram = "gosmore";
homepage = "https://sourceforge.net/projects/gosmore/";
maintainers = with maintainers; [
raskin
];
platforms = platforms.linux;
license = licenses.bsd2;
};
}
|