3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/qmapshack/default.nix

40 lines
985 B
Nix
Raw Normal View History

2019-09-12 20:14:42 +01:00
{ mkDerivation, lib, fetchFromGitHub, 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 {
pname = "qmapshack";
2019-11-01 16:28:05 +00:00
version = "1.14.0";
2019-09-12 20:14:42 +01:00
src = fetchFromGitHub {
owner = "Maproom";
repo = pname;
2019-11-01 16:28:05 +00:00
rev = "V_${version}";
sha256 = "07c2hrq9sn456w7l3gdr599rmjfv2k6mh159zza7p1py8r7ywksa";
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 = [
2019-09-12 20:14:42 +01:00
"${src}/FindPROJ4.patch"
"${src}/FindQuaZip5.patch"
2019-06-26 22:21:39 +01:00
];
2019-08-02 18:19:02 +01:00
meta = with lib; {
2019-09-12 20:14:42 +01:00
homepage = https://github.com/Maproom/qmapshack;
description = "Consumer grade GIS software";
2017-09-24 19:18:39 +01:00
license = licenses.gpl3;
2019-09-12 20:14:42 +01:00
maintainers = with maintainers; [ dotlambda sikmir ];
2017-09-24 19:18:39 +01:00
platforms = with platforms; linux;
};
}