1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 10:31:36 +00:00
nixpkgs/pkgs/applications/gis/qmapshack/default.nix

42 lines
967 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";
2020-12-11 00:17:49 +00:00
version = "1.15.2";
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}";
2020-12-11 00:17:49 +00:00
sha256 = "1l1j2axf94pdqwirwwhwy3y6k8v1aix78ifqbv6j8sv131h2j7y7";
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
patches = [
2019-09-12 20:14:42 +01:00
"${src}/FindPROJ4.patch"
2021-05-02 01:43:13 +01:00
# Support QuaZip 1.x.
./pr350-support-quazip-1x.patch
2019-06-26 22:21:39 +01:00
];
qtWrapperArgs = [
"--suffix PATH : ${lib.makeBinPath [ gdal routino ]}"
];
2019-08-02 18:19:02 +01:00
meta = with lib; {
2020-03-29 08:35:11 +01:00
homepage = "https://github.com/Maproom/qmapshack";
2019-09-12 20:14:42 +01:00
description = "Consumer grade GIS software";
2020-11-27 09:05:04 +00:00
license = licenses.gpl3Plus;
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;
};
}