2018-09-05 07:39:29 +01:00
|
|
|
{ stdenv, fetchurl, cmake, qtscript, qtwebengine, gdal, proj, routino, quazip }:
|
2017-09-24 19:18:39 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "qmapshack-${version}";
|
2018-12-22 19:45:26 +00:00
|
|
|
version = "1.12.1";
|
2017-09-24 19:18:39 +01:00
|
|
|
|
2017-12-22 08:10:07 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://bitbucket.org/maproom/qmapshack/downloads/${name}.tar.gz";
|
2018-12-22 19:45:26 +00:00
|
|
|
sha256 = "1d6n7xk0ksxb1fw43s5lb08vgxf6h93k3rb401cbka1inpyf2232";
|
2017-09-24 19:18:39 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2018-09-05 07:39:29 +01:00
|
|
|
buildInputs = [ qtscript qtwebengine gdal proj routino quazip ];
|
2017-09-24 19:18:39 +01:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DROUTINO_XML_PATH=${routino}/share/routino"
|
|
|
|
"-DQUAZIP_INCLUDE_DIR=${quazip}/include/quazip"
|
|
|
|
"-DLIBQUAZIP_LIBRARY=${quazip}/lib/libquazip.so"
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://bitbucket.org/maproom/qmapshack/wiki/Home;
|
|
|
|
description = "Plan your next outdoor trip";
|
|
|
|
license = licenses.gpl3;
|
2017-12-05 22:20:11 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2017-09-24 19:18:39 +01:00
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|