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

43 lines
1.3 KiB
Nix
Raw Normal View History

2019-06-27 00:21:39 +03:00
{ stdenv, fetchurl, fetchpatch, cmake, qtscript, qtwebengine, gdal, proj, routino, quazip }:
2017-09-24 21:18:39 +03:00
stdenv.mkDerivation rec {
name = "qmapshack-${version}";
2019-06-27 00:21:39 +03:00
version = "1.13.0";
2017-09-24 21:18:39 +03:00
2017-12-22 11:10:07 +03:00
src = fetchurl {
url = "https://bitbucket.org/maproom/qmapshack/downloads/${name}.tar.gz";
2019-06-27 00:21:39 +03:00
sha256 = "1cv1f718r8vqyk2l6w3alz2aqjvb4msz8705pm9yr5ndi28qyrba";
2017-09-24 21:18:39 +03:00
};
nativeBuildInputs = [ cmake ];
2018-09-05 09:39:29 +03:00
buildInputs = [ qtscript qtwebengine gdal proj routino quazip ];
2017-09-24 21:18:39 +03:00
cmakeFlags = [
"-DROUTINO_XML_PATH=${routino}/share/routino"
2019-06-27 00:21:39 +03:00
"-DQUAZIP_INCLUDE_DIR=${quazip}/include/quazip5"
2017-09-24 21:18:39 +03:00
"-DLIBQUAZIP_LIBRARY=${quazip}/lib/libquazip.so"
];
enableParallelBuilding = true;
2019-06-27 00:21:39 +03:00
patches = [
(fetchpatch {
url = "https://bitbucket.org/maproom/qmapshack/raw/d0b1b595578a83fda981ccc1ff24166fa636ba1d/FindPROJ4.patch";
sha256 = "1nx4ax233bnnj478cmjpm5c1qqmyn1navlihf10q6hhbanay9n99";
})
(fetchpatch {
url = "https://bitbucket.org/maproom/qmapshack/raw/d0b1b595578a83fda981ccc1ff24166fa636ba1d/FindQuaZip5.patch";
sha256 = "0z1b2dz2zlz685mxgn8bmh1fyhxpf6dzd6jvkkjyk2kvnrdxv3b9";
})
];
2017-09-24 21:18:39 +03:00
meta = with stdenv.lib; {
homepage = https://bitbucket.org/maproom/qmapshack/wiki/Home;
description = "Plan your next outdoor trip";
license = licenses.gpl3;
maintainers = with maintainers; [ dotlambda ];
2017-09-24 21:18:39 +03:00
platforms = with platforms; linux;
};
}