zombietrackergps: 1.10 -> 1.15
This commit is contained in:
parent
d8c18f961b
commit
809593e762
@ -1,67 +1,61 @@
|
||||
{ mkDerivation
|
||||
, lib
|
||||
, fetchFromGitLab
|
||||
, qmake
|
||||
, qtcharts
|
||||
, qtsvg
|
||||
, marble
|
||||
, qtwebengine
|
||||
, ldutils
|
||||
{
|
||||
mkDerivation,
|
||||
lib,
|
||||
fetchFromGitLab,
|
||||
gitUpdater,
|
||||
wrapQtAppsHook,
|
||||
cmake,
|
||||
marble,
|
||||
libsForQt5,
|
||||
}:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "zombietrackergps";
|
||||
version = "1.10";
|
||||
version = "1.15";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "ldutils-projects";
|
||||
repo = pname;
|
||||
rev = "v_${version}";
|
||||
sha256 = "sha256-qRhCAOVWyDLD3WDptPRQVq+VwyFu83XQNaL5TMsGs4Y=";
|
||||
# latest revision is not tagged upstream, use commit sha in the meantime
|
||||
#rev = "v_${version}";
|
||||
rev = "cc75d5744965cc6973323f5bb77f00b0b0153dce";
|
||||
sha256 = "sha256-z/LFNRFdQQFxEWyAjcuGezRbTsv8z6Q6fK8NLjP4HNM=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
ldutils
|
||||
qtcharts
|
||||
qtsvg
|
||||
marble.dev
|
||||
qtwebengine
|
||||
];
|
||||
buildInputs =
|
||||
[
|
||||
marble.dev
|
||||
]
|
||||
++ (with libsForQt5; [
|
||||
qtbase
|
||||
qtcharts
|
||||
qtsvg
|
||||
qtwebengine
|
||||
ldutils
|
||||
]);
|
||||
|
||||
nativeBuildInputs = [
|
||||
qmake
|
||||
cmake
|
||||
wrapQtAppsHook
|
||||
];
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace ztgps.pro --replace "../libldutils" "libldutils"
|
||||
substituteInPlace tests.pro --replace "../libldutils" "libldutils"
|
||||
|
||||
ln -s ${ldutils} libldutils
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
export LANG=en_US.UTF-8
|
||||
export INSTALL_ROOT=$out
|
||||
'';
|
||||
|
||||
preInstall = ''
|
||||
substituteInPlace Makefile.ztgps --replace '$(INSTALL_ROOT)' ""
|
||||
substituteInPlace Makefile.art --replace '$(INSTALL_ROOT)' ""
|
||||
'';
|
||||
cmakeFlags = [
|
||||
"-DLDUTILS_ROOT=${libsForQt5.ldutils}"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
install -Dm644 build/rcc/*.rcc -t $out/share/zombietrackergps
|
||||
'';
|
||||
|
||||
qmakeFlags = [ "ZombieTrackerGPS.pro" ];
|
||||
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 ];
|
||||
maintainers = with maintainers; [sohalt];
|
||||
platforms = platforms.linux;
|
||||
broken = true; # doesn't build with latest Marble
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user