2021-12-06 16:07:01 +00:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, cmake, substituteAll
|
|
|
|
, qtscript, qttranslations, qtwebengine, gdal, proj, routino, quazip }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "qmapshack";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "1.16.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Maproom";
|
|
|
|
repo = pname;
|
|
|
|
rev = "V_${version}";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-2otvRKtFb51PLrIh/Hxltp69n5nyR63HGGvk73TFjqA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
patches = [
|
|
|
|
# See https://github.com/NixOS/nixpkgs/issues/86054
|
|
|
|
(substituteAll {
|
|
|
|
src = ./fix-qttranslations-path.patch;
|
|
|
|
inherit qttranslations;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
buildInputs = [ qtscript qtwebengine gdal proj routino quazip ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DROUTINO_XML_PATH=${routino}/share/routino"
|
|
|
|
];
|
|
|
|
|
2020-05-29 06:06:01 +00:00
|
|
|
qtWrapperArgs = [
|
|
|
|
"--suffix PATH : ${lib.makeBinPath [ gdal routino ]}"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/Maproom/qmapshack";
|
|
|
|
description = "Consumer grade GIS software";
|
2020-11-30 08:33:03 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda sikmir ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|