nixpkgs-suyu/pkgs/applications/gis/qmapshack/default.nix

43 lines
1 KiB
Nix
Raw Normal View History

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