mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{ lib, stdenv, fetchFromGitHub, cmake, substituteAll, wrapQtAppsHook
|
|
, qtscript, qttranslations, qtwebengine, gdal, proj, routino, quazip }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "qmapshack";
|
|
version = "1.17.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Maproom";
|
|
repo = "qmapshack";
|
|
rev = "V_${version}";
|
|
hash = "sha256-qG/fiR2J5wQZaR+xvBGjdp3L7viqki2ktkzBUf6fZi8=";
|
|
};
|
|
|
|
patches = [
|
|
# See https://github.com/NixOS/nixpkgs/issues/86054
|
|
(substituteAll {
|
|
src = ./fix-qttranslations-path.patch;
|
|
inherit qttranslations;
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake wrapQtAppsHook ];
|
|
|
|
buildInputs = [ qtscript qtwebengine gdal proj routino quazip ];
|
|
|
|
cmakeFlags = [
|
|
"-DROUTINO_XML_PATH=${routino}/share/routino"
|
|
];
|
|
|
|
qtWrapperArgs = [
|
|
"--suffix PATH : ${lib.makeBinPath [ gdal routino ]}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Consumer grade GIS software";
|
|
homepage = "https://github.com/Maproom/qmapshack";
|
|
changelog = "https://github.com/Maproom/qmapshack/blob/V_${version}/changelog.txt";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ dotlambda sikmir ];
|
|
platforms = with platforms; linux;
|
|
};
|
|
}
|