2021-11-11 13:31:11 +03:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, cmake, substituteAll
|
|
|
|
, qtscript, qttranslations, qtwebengine, gdal, proj, routino, quazip }:
|
2017-09-24 21:18:39 +03:00
|
|
|
|
2019-08-02 20:19:02 +03:00
|
|
|
mkDerivation rec {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "qmapshack";
|
2021-05-24 22:17:35 +03:00
|
|
|
version = "1.16.0";
|
2019-09-12 22:14:42 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Maproom";
|
|
|
|
repo = pname;
|
2019-11-01 19:28:05 +03:00
|
|
|
rev = "V_${version}";
|
2021-05-24 22:17:35 +03:00
|
|
|
sha256 = "1yzgkdjxwyg8ggbxyjwr0zjrx99ckrbz2p2524iii9i7qqn8wfsx";
|
2017-09-24 21:18:39 +03:00
|
|
|
};
|
|
|
|
|
2021-11-11 13:31:11 +03:00
|
|
|
patches = [
|
|
|
|
# See https://github.com/NixOS/nixpkgs/issues/86054
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-qttranslations-path.patch;
|
|
|
|
inherit qttranslations;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
2020-04-03 03:35:10 +03:00
|
|
|
qtWrapperArgs = [
|
|
|
|
"--suffix PATH : ${lib.makeBinPath [ gdal routino ]}"
|
|
|
|
];
|
|
|
|
|
2019-08-02 20:19:02 +03:00
|
|
|
meta = with lib; {
|
2020-03-29 10:35:11 +03:00
|
|
|
homepage = "https://github.com/Maproom/qmapshack";
|
2019-09-12 22:14:42 +03:00
|
|
|
description = "Consumer grade GIS software";
|
2020-11-27 12:05:04 +03:00
|
|
|
license = licenses.gpl3Plus;
|
2019-09-12 22:14:42 +03:00
|
|
|
maintainers = with maintainers; [ dotlambda sikmir ];
|
2017-09-24 21:18:39 +03:00
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|