about summary refs log tree commit diff
path: root/pkgs/applications/gis
diff options
context:
space:
mode:
authorNikolay Korotkiy <sikmir@gmail.com>2020-11-27 12:05:04 +0300
committerNikolay Korotkiy <sikmir@gmail.com>2020-11-27 12:32:55 +0300
commit92672cfff81e2cc227b237037746ef296c551503 (patch)
tree2765669e4b3faed5b85f8b017cabab027eff7596 /pkgs/applications/gis
parent215337d484db4d981bd88ecf241fae2a263eacf2 (diff)
qmapshack: 1.15.0 → 1.15.1
Diffstat (limited to 'pkgs/applications/gis')
-rw-r--r--pkgs/applications/gis/qmapshack/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/applications/gis/qmapshack/default.nix b/pkgs/applications/gis/qmapshack/default.nix
new file mode 100644
index 0000000000000..bc7d888e2c154
--- /dev/null
+++ b/pkgs/applications/gis/qmapshack/default.nix
@@ -0,0 +1,41 @@
+{ mkDerivation, lib, fetchFromGitHub, cmake
+, qtscript, qtwebengine, gdal, proj, routino, quazip }:
+
+mkDerivation rec {
+  pname = "qmapshack";
+  version = "1.15.1";
+
+  src = fetchFromGitHub {
+    owner = "Maproom";
+    repo = pname;
+    rev = "V_${version}";
+    sha256 = "1q8qczp9bgk3dzdswb1x64fcn3xg339s0yx31nablb518hcb8jkr";
+  };
+
+  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"
+  ];
+
+  patches = [
+    "${src}/FindPROJ4.patch"
+    "${src}/FindQuaZip5.patch"
+  ];
+
+  qtWrapperArgs = [
+    "--suffix PATH : ${lib.makeBinPath [ gdal routino ]}"
+  ];
+
+  meta = with lib; {
+    homepage = "https://github.com/Maproom/qmapshack";
+    description = "Consumer grade GIS software";
+    license = licenses.gpl3Plus;
+    maintainers = with maintainers; [ dotlambda sikmir ];
+    platforms = with platforms; linux;
+  };
+}