Merge pull request #300289 from Sohalt/zombietrackergps

zombietrackergps: 1.10 -> 1.15
This commit is contained in:
Peder Bergebakken Sundt 2024-05-12 20:23:49 +02:00 committed by GitHub
commit cbba7fa616
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 50 additions and 56 deletions

View File

@ -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
};
}

View File

@ -1,41 +1,41 @@
{ mkDerivation
, lib
, fetchFromGitLab
, qtcharts
, qtsvg
, qmake
{
mkDerivation,
lib,
fetchFromGitLab,
libsForQt5,
cmake,
}:
mkDerivation rec {
pname = "ldutils";
version = "1.10";
version = "1.15";
src = fetchFromGitLab {
owner = "ldutils-projects";
repo = pname;
rev = "v_${version}";
sha256 = "sha256-fP+tZY+ayaeuxPvywO/639sNE+IwrxaEJ245q9HTOCU=";
rev = "4fc416f694ce888c5bd4c4432a7730bb6260475c";
#rev = "v_${version}";
sha256 = "sha256-UMDayvz9RlcR4HVJNn7tN4FKbiKAFRSPaK0osA6OGTI=";
};
buildInputs = [
buildInputs = with libsForQt5.qt5; [
qtcharts
qtsvg
];
nativeBuildInputs = [
qmake
cmake
];
qmakeFlags = [ "ldutils.pro" ];
qmakeFlags = ["ldutils.pro"];
LDUTILS_LIB=placeholder "out";
LDUTILS_INCLUDE=placeholder "out";
LDUTILS_LIB = placeholder "out";
LDUTILS_INCLUDE = placeholder "out";
meta = with lib; {
description = "Headers and link library for other ldutils projects";
homepage = "https://gitlab.com/ldutils-projects/ldutils";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ sohalt ];
maintainers = with maintainers; [sohalt];
platforms = platforms.linux;
};
}