nixpkgs/pkgs/applications/misc/qmapshack/default.nix

43 lines
1.2 KiB
Nix
Raw Normal View History

2019-09-12 21:14:42 +02:00
{ mkDerivation, lib, fetchFromGitHub, cmake
, qtscript, qtwebengine, gdal, proj, routino, quazip }:
2017-09-24 20:18:39 +02:00
2019-08-02 19:19:02 +02:00
mkDerivation rec {
pname = "qmapshack";
2019-09-12 21:14:42 +02:00
version = "1.13.2";
src = fetchFromGitHub {
owner = "Maproom";
repo = pname;
# TODO: remove it on next release.
# 1.13.2 release tarball is essentially broken, use fixed commit instead.
# See https://github.com/maproom/qmapshack/pull/4 for more details.
rev = "763cfc149566325cce9e4690cb7b5f986048f86a"; #"V_${version}";
sha256 = "1lfivhm9rv9ly1srlmb7d80s77306xplg23lx35vav879bri29rx";
2017-09-24 20:18:39 +02:00
};
nativeBuildInputs = [ cmake ];
2018-09-05 08:39:29 +02:00
buildInputs = [ qtscript qtwebengine gdal proj routino quazip ];
2017-09-24 20:18:39 +02:00
cmakeFlags = [
"-DROUTINO_XML_PATH=${routino}/share/routino"
2019-06-26 23:21:39 +02:00
"-DQUAZIP_INCLUDE_DIR=${quazip}/include/quazip5"
2017-09-24 20:18:39 +02:00
"-DLIBQUAZIP_LIBRARY=${quazip}/lib/libquazip.so"
];
enableParallelBuilding = true;
2019-06-26 23:21:39 +02:00
patches = [
2019-09-12 21:14:42 +02:00
"${src}/FindPROJ4.patch"
"${src}/FindQuaZip5.patch"
2019-06-26 23:21:39 +02:00
];
2019-08-02 19:19:02 +02:00
meta = with lib; {
2019-09-12 21:14:42 +02:00
homepage = https://github.com/Maproom/qmapshack;
description = "Consumer grade GIS software";
2017-09-24 20:18:39 +02:00
license = licenses.gpl3;
2019-09-12 21:14:42 +02:00
maintainers = with maintainers; [ dotlambda sikmir ];
2017-09-24 20:18:39 +02:00
platforms = with platforms; linux;
};
}