2023-12-09 16:53:30 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libxml2, gtk2, curl, pkg-config }:
|
2010-06-11 22:34:51 +00:00
|
|
|
|
2022-03-07 11:37:20 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gosmore";
|
2023-12-09 16:53:30 +00:00
|
|
|
version = "unstable-2014-03-17";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openstreetmap";
|
|
|
|
repo = "svn-archive";
|
|
|
|
rev = "89b1fbfbc9e9a8b5e78795fd40bdfa60550322fc";
|
|
|
|
sparseCheckout = [ "applications/rendering/gosmore" ];
|
|
|
|
hash = "sha256-MfuJVsyGWspGNAFD6Ktbbyawb4bPwUITe7WkyFs6JxI=";
|
2014-11-19 12:30:59 +00:00
|
|
|
};
|
2010-06-11 22:34:51 +00:00
|
|
|
|
2023-12-09 16:53:30 +00:00
|
|
|
sourceRoot = "${src.name}/applications/rendering/gosmore";
|
|
|
|
|
2016-09-11 21:24:51 +00:00
|
|
|
buildInputs = [ libxml2 gtk2 curl ];
|
2010-06-11 22:34:51 +00:00
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2011-11-08 10:19:50 +00:00
|
|
|
|
2014-11-19 12:30:59 +00:00
|
|
|
prePatch = ''
|
2011-11-08 10:19:50 +00:00
|
|
|
sed -e '/curl.types.h/d' -i *.{c,h,hpp,cpp}
|
2023-12-09 16:53:30 +00:00
|
|
|
sed -e "24i #include <ctime>" -e "s/data/dat/g" -i jni/libgosm.cpp
|
2014-11-19 12:30:59 +00:00
|
|
|
'';
|
2018-03-17 23:45:53 +00:00
|
|
|
|
|
|
|
patches = [ ./pointer_int_comparison.patch ];
|
|
|
|
patchFlags = [ "-p1" "--binary" ]; # patch has dos style eol
|
2020-06-11 10:11:56 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2010-06-11 22:34:51 +00:00
|
|
|
description = "Open Street Map viewer";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://sourceforge.net/projects/gosmore/";
|
2014-11-19 12:30:59 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
raskin
|
2010-06-11 22:34:51 +00:00
|
|
|
];
|
2014-11-19 12:30:59 +00:00
|
|
|
platforms = platforms.linux;
|
2020-06-11 10:11:56 +00:00
|
|
|
license = licenses.bsd2;
|
2010-06-11 22:34:51 +00:00
|
|
|
};
|
|
|
|
}
|