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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.2 KiB
Nix
Raw Normal View History

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