2020-09-24 23:05:03 +00:00
|
|
|
{ mkDerivation
|
|
|
|
, lib
|
|
|
|
, fetchFromGitLab
|
|
|
|
, qmake
|
|
|
|
, qtcharts
|
|
|
|
, qtsvg
|
|
|
|
, marble
|
|
|
|
, qtwebengine
|
|
|
|
, ldutils
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "zombietrackergps";
|
2021-05-28 12:48:47 +00:00
|
|
|
version = "1.10";
|
2020-09-24 23:05:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "ldutils-projects";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v_${version}";
|
2021-05-28 12:48:47 +00:00
|
|
|
sha256 = "sha256-qRhCAOVWyDLD3WDptPRQVq+VwyFu83XQNaL5TMsGs4Y=";
|
2020-09-24 23:05:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
ldutils
|
|
|
|
qtcharts
|
|
|
|
qtsvg
|
|
|
|
marble.dev
|
|
|
|
qtwebengine
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
qmake
|
|
|
|
];
|
|
|
|
|
|
|
|
prePatch = ''
|
2021-05-28 12:48:47 +00:00
|
|
|
substituteInPlace ztgps.pro --replace "../libldutils" "libldutils"
|
|
|
|
substituteInPlace tests.pro --replace "../libldutils" "libldutils"
|
|
|
|
|
|
|
|
ln -s ${ldutils} libldutils
|
2020-09-24 23:05:03 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
export INSTALL_ROOT=$out
|
|
|
|
'';
|
|
|
|
|
2021-05-28 12:48:47 +00:00
|
|
|
preInstall = ''
|
|
|
|
substituteInPlace Makefile.ztgps --replace '$(INSTALL_ROOT)' ""
|
|
|
|
substituteInPlace Makefile.art --replace '$(INSTALL_ROOT)' ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -Dm644 build/rcc/*.rcc -t $out/share/zombietrackergps
|
2020-09-24 23:05:03 +00:00
|
|
|
'';
|
|
|
|
|
2021-05-28 12:48:47 +00:00
|
|
|
qmakeFlags = [ "ZombieTrackerGPS.pro" ];
|
|
|
|
|
2020-09-24 23:05:03 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "GPS track manager for Qt using KDE Marble maps";
|
2020-11-29 08:00:41 +00:00
|
|
|
homepage = "https://www.zombietrackergps.net/ztgps/";
|
|
|
|
changelog = "https://www.zombietrackergps.net/ztgps/history.html";
|
2020-09-24 23:05:03 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ sohalt ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|