2019-09-12 19:14:42 +00:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, cmake
|
|
|
|
, qtscript, qtwebengine, gdal, proj, routino, quazip }:
|
2017-09-24 18:18:39 +00:00
|
|
|
|
2019-08-02 17:19:02 +00:00
|
|
|
mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "qmapshack";
|
2020-06-15 15:03:13 +00:00
|
|
|
version = "1.15.0";
|
2019-09-12 19:14:42 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Maproom";
|
|
|
|
repo = pname;
|
2019-11-01 16:28:05 +00:00
|
|
|
rev = "V_${version}";
|
2020-06-15 15:03:13 +00:00
|
|
|
sha256 = "157bssrbwcc1w58b0v60jb3wrjf2ig4z6z6crjnpvflkqj5p8vwy";
|
2017-09-24 18:18:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2018-09-05 06:39:29 +00:00
|
|
|
buildInputs = [ qtscript qtwebengine gdal proj routino quazip ];
|
2017-09-24 18:18:39 +00:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DROUTINO_XML_PATH=${routino}/share/routino"
|
2019-06-26 21:21:39 +00:00
|
|
|
"-DQUAZIP_INCLUDE_DIR=${quazip}/include/quazip5"
|
2017-09-24 18:18:39 +00:00
|
|
|
"-DLIBQUAZIP_LIBRARY=${quazip}/lib/libquazip.so"
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-06-26 21:21:39 +00:00
|
|
|
patches = [
|
2019-09-12 19:14:42 +00:00
|
|
|
"${src}/FindPROJ4.patch"
|
|
|
|
"${src}/FindQuaZip5.patch"
|
2019-06-26 21:21:39 +00:00
|
|
|
];
|
|
|
|
|
2020-04-03 00:35:10 +00:00
|
|
|
qtWrapperArgs = [
|
|
|
|
"--suffix PATH : ${lib.makeBinPath [ gdal routino ]}"
|
|
|
|
];
|
|
|
|
|
2019-08-02 17:19:02 +00:00
|
|
|
meta = with lib; {
|
2020-03-29 07:35:11 +00:00
|
|
|
homepage = "https://github.com/Maproom/qmapshack";
|
2019-09-12 19:14:42 +00:00
|
|
|
description = "Consumer grade GIS software";
|
2017-09-24 18:18:39 +00:00
|
|
|
license = licenses.gpl3;
|
2019-09-12 19:14:42 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda sikmir ];
|
2017-09-24 18:18:39 +00:00
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|