2020-04-24 23:36:52 +00:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, cmake
|
|
|
|
, qtscript, qtwebengine, gdal, proj, routino, quazip }:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "qmapshack";
|
2020-06-18 07:06:33 +00:00
|
|
|
version = "1.15.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Maproom";
|
|
|
|
repo = pname;
|
|
|
|
rev = "V_${version}";
|
2020-06-18 07:06:33 +00:00
|
|
|
sha256 = "157bssrbwcc1w58b0v60jb3wrjf2ig4z6z6crjnpvflkqj5p8vwy";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
buildInputs = [ qtscript qtwebengine gdal proj routino quazip ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DROUTINO_XML_PATH=${routino}/share/routino"
|
|
|
|
"-DQUAZIP_INCLUDE_DIR=${quazip}/include/quazip5"
|
|
|
|
"-DLIBQUAZIP_LIBRARY=${quazip}/lib/libquazip.so"
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
"${src}/FindPROJ4.patch"
|
|
|
|
"${src}/FindQuaZip5.patch"
|
|
|
|
];
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
qtWrapperArgs = [
|
|
|
|
"--suffix PATH : ${lib.makeBinPath [ gdal routino ]}"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/Maproom/qmapshack";
|
|
|
|
description = "Consumer grade GIS software";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ dotlambda sikmir ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|