nixpkgs/pkgs/by-name/go/gosmore/package.nix

39 lines
1.0 KiB
Nix
Raw Normal View History

2023-12-09 16:53:30 +00:00
{ lib, stdenv, fetchFromGitHub, libxml2, gtk2, curl, pkg-config }:
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
};
2023-12-09 16:53:30 +00:00
sourceRoot = "${src.name}/applications/rendering/gosmore";
buildInputs = [ libxml2 gtk2 curl ];
nativeBuildInputs = [ pkg-config ];
2014-11-19 12:30:59 +00:00
prePatch = ''
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
meta = with lib; {
description = "Open Street Map viewer";
homepage = "https://sourceforge.net/projects/gosmore/";
2014-11-19 12:30:59 +00:00
maintainers = with maintainers; [
raskin
];
2014-11-19 12:30:59 +00:00
platforms = platforms.linux;
2020-06-11 10:11:56 +00:00
license = licenses.bsd2;
};
}