2019-08-02 18:19:02 +01:00
|
|
|
{ mkDerivation, lib, fetchurl, fetchpatch, cmake, qtscript, qtwebengine, gdal, proj, routino, quazip }:
|
2017-09-24 19:18:39 +01:00
|
|
|
|
2019-08-02 18:19:02 +01:00
|
|
|
mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "qmapshack";
|
2019-08-05 23:01:23 +01:00
|
|
|
version = "1.13.1";
|
2017-09-24 19:18:39 +01:00
|
|
|
|
2017-12-22 08:10:07 +00:00
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://bitbucket.org/maproom/qmapshack/downloads/${pname}-${version}.tar.gz";
|
2019-08-05 23:01:23 +01:00
|
|
|
sha256 = "15x1b2q0hr1vx006f9hjc4cvfjvxvfdwybw32qvczdyc3crq0mc9";
|
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"
|
2019-06-26 22:21:39 +01:00
|
|
|
"-DQUAZIP_INCLUDE_DIR=${quazip}/include/quazip5"
|
2017-09-24 19:18:39 +01:00
|
|
|
"-DLIBQUAZIP_LIBRARY=${quazip}/lib/libquazip.so"
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-06-26 22:21:39 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://bitbucket.org/maproom/qmapshack/raw/d0b1b595578a83fda981ccc1ff24166fa636ba1d/FindPROJ4.patch";
|
|
|
|
sha256 = "1nx4ax233bnnj478cmjpm5c1qqmyn1navlihf10q6hhbanay9n99";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://bitbucket.org/maproom/qmapshack/raw/d0b1b595578a83fda981ccc1ff24166fa636ba1d/FindQuaZip5.patch";
|
|
|
|
sha256 = "0z1b2dz2zlz685mxgn8bmh1fyhxpf6dzd6jvkkjyk2kvnrdxv3b9";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-08-02 18:19:02 +01:00
|
|
|
meta = with lib; {
|
2017-09-24 19:18:39 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|