navit: svn-5576 -> 0.5.1 (#45465)
This commit is contained in:
parent
cf68a14a01
commit
77085f8324
@ -1,30 +1,58 @@
|
|||||||
{ stdenv, fetchsvn, pkgconfig, gtk2, SDL, fontconfig, freetype, imlib2, SDL_image, libGLU_combined,
|
{ stdenv, fetchFromGitHub, pkgconfig, gtk2, SDL, fontconfig, freetype, imlib2, SDL_image, libGLU_combined,
|
||||||
libXmu, freeglut, python, gettext, quesoglc, gd, postgresql, cmake, qt4, SDL_ttf, fribidi}:
|
libXmu, freeglut, pcre, dbus-glib, glib, librsvg, freeimage, libxslt,
|
||||||
stdenv.mkDerivation rec {
|
qtbase, qtquickcontrols, qtsvg, qtdeclarative, qtlocation, qtsensors, qtmultimedia, qtspeech, espeak,
|
||||||
name = "navit-svn-3537";
|
cairo, gdk_pixbuf, pango, atk, patchelf, fetchurl, bzip2,
|
||||||
|
python, gettext, quesoglc, gd, postgresql, cmake, shapelib, SDL_ttf, fribidi}:
|
||||||
|
|
||||||
src = fetchsvn {
|
stdenv.mkDerivation rec {
|
||||||
url = svn://svn.code.sf.net/p/navit/code/trunk/navit;
|
name = "navit-${version}";
|
||||||
rev = 5576;
|
version = "0.5.1";
|
||||||
sha256 = "1xx62l5srfhh9cfi7n3pxj8hpcgr1rpa0hzfmbrqadzv09z36723";
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "navit-gps";
|
||||||
|
repo = "navit";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0jf2gjh2sszr5y5c2wvamfj2qggi2y5k3ynb32pak9vhf5xyl5xj";
|
||||||
};
|
};
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
sample_map = fetchurl {
|
||||||
|
url = "http://www.navit-project.org/maps/osm_bbox_11.3,47.9,11.7,48.2.osm.bz2";
|
||||||
buildInputs = [ gtk2 SDL fontconfig freetype imlib2 SDL_image libGLU_combined
|
name = "sample_map.bz2";
|
||||||
libXmu freeglut python gettext quesoglc gd postgresql qt4 SDL_ttf fribidi ];
|
sha256 = "0vg6b6rhsa2cxqj4rbhfhhfss71syhnfa6f1jg2i2d7l88dm5x7d";
|
||||||
|
};
|
||||||
nativeBuildInputs = [ pkgconfig cmake ];
|
|
||||||
|
|
||||||
|
#hardeningDisable = [ "format" ];
|
||||||
NIX_CFLAGS_COMPILE = [ "-I${SDL.dev}/include/SDL" ];
|
NIX_CFLAGS_COMPILE = [ "-I${SDL.dev}/include/SDL" ];
|
||||||
|
|
||||||
cmakeFlags = [ "-DSAMPLE_MAP=n" ];
|
# TODO: fix speech options.
|
||||||
|
cmakeFlags = [ "-DSAMPLE_MAP=n " "-DCMAKE_BUILD_TYPE=RelWithDebInfo" "-Dsupport/espeak=FALSE" "-Dspeech/qt5_espeak=FALSE" ];
|
||||||
|
|
||||||
meta = {
|
buildInputs = [ gtk2 SDL fontconfig freetype imlib2 SDL_image libGLU_combined freeimage libxslt
|
||||||
homepage = http://www.navit-project.org/;
|
libXmu freeglut python gettext quesoglc gd postgresql qtbase SDL_ttf fribidi pcre qtquickcontrols
|
||||||
|
espeak qtmultimedia qtspeech qtsensors qtlocation qtdeclarative qtsvg dbus-glib librsvg shapelib glib
|
||||||
|
cairo gdk_pixbuf pango atk ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ pkgconfig cmake patchelf bzip2 ];
|
||||||
|
|
||||||
|
# we dont want blank screen by defaut
|
||||||
|
postInstall = ''
|
||||||
|
# emulate DSAMPLE_MAP
|
||||||
|
mkdir -p $out/share/navit/maps/maps
|
||||||
|
bzcat "${sample_map}" | $out/bin/maptool "$out/share/navit/maps/osm_bbox_11.3,47.9,11.7,48.2.bin"
|
||||||
|
'';
|
||||||
|
|
||||||
|
# TODO: fix upstream?
|
||||||
|
postFixup = ''
|
||||||
|
for lib in $(find "$out/lib/navit/" -iname "*.so" ); do
|
||||||
|
patchelf --set-rpath ${stdenv.lib.makeLibraryPath buildInputs} $lib
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = http://www.navit-project.org;
|
||||||
description = "Car navigation system with routing engine using OSM maps";
|
description = "Car navigation system with routing engine using OSM maps";
|
||||||
license = stdenv.lib.licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
maintainers = with stdenv.lib.maintainers; [ ];
|
maintainers = [ maintainers.genesis ];
|
||||||
platforms = with stdenv.lib.platforms; linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -17714,7 +17714,7 @@ with pkgs;
|
|||||||
|
|
||||||
navipowm = callPackage ../applications/misc/navipowm { };
|
navipowm = callPackage ../applications/misc/navipowm { };
|
||||||
|
|
||||||
navit = callPackage ../applications/misc/navit { };
|
navit = libsForQt5.callPackage ../applications/misc/navit { };
|
||||||
|
|
||||||
netbeans = callPackage ../applications/editors/netbeans { };
|
netbeans = callPackage ../applications/editors/netbeans { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user