61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{
|
|
mkDerivation,
|
|
lib,
|
|
fetchFromGitLab,
|
|
gitUpdater,
|
|
wrapQtAppsHook,
|
|
cmake,
|
|
marble,
|
|
libsForQt5,
|
|
}:
|
|
mkDerivation rec {
|
|
pname = "zombietrackergps";
|
|
version = "1.15";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "ldutils-projects";
|
|
repo = pname;
|
|
# latest revision is not tagged upstream, use commit sha in the meantime
|
|
#rev = "v_${version}";
|
|
rev = "cc75d5744965cc6973323f5bb77f00b0b0153dce";
|
|
hash = "sha256-z/LFNRFdQQFxEWyAjcuGezRbTsv8z6Q6fK8NLjP4HNM=";
|
|
};
|
|
|
|
buildInputs =
|
|
[
|
|
marble.dev
|
|
]
|
|
++ (with libsForQt5; [
|
|
qtbase
|
|
qtcharts
|
|
qtsvg
|
|
qtwebengine
|
|
ldutils
|
|
]);
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
wrapQtAppsHook
|
|
];
|
|
|
|
preConfigure = ''
|
|
export LANG=en_US.UTF-8
|
|
'';
|
|
|
|
cmakeFlags = [
|
|
"-DLDUTILS_ROOT=${libsForQt5.ldutils}"
|
|
];
|
|
|
|
passthru.updateScript = gitUpdater {
|
|
rev-prefix = "v_";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "GPS track manager for Qt using KDE Marble maps";
|
|
homepage = "https://www.zombietrackergps.net/ztgps/";
|
|
changelog = "https://www.zombietrackergps.net/ztgps/history.html";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [sohalt];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|