From d8c18f961b02406788b5abff1b5934d72ee7dbdf Mon Sep 17 00:00:00 2001 From: sohalt Date: Sat, 30 Mar 2024 17:00:19 +0100 Subject: [PATCH 1/2] ldutils: 1.10 -> 1.15 --- .../development/libraries/ldutils/default.nix | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/pkgs/development/libraries/ldutils/default.nix b/pkgs/development/libraries/ldutils/default.nix index 0268aa8ce62d..157c86ec553e 100644 --- a/pkgs/development/libraries/ldutils/default.nix +++ b/pkgs/development/libraries/ldutils/default.nix @@ -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; }; } From 809593e7623cf05383c7ad99d003ce1d99013a1f Mon Sep 17 00:00:00 2001 From: sohalt Date: Sat, 30 Mar 2024 16:27:59 +0100 Subject: [PATCH 2/2] zombietrackergps: 1.10 -> 1.15 --- .../gis/zombietrackergps/default.nix | 74 +++++++++---------- 1 file changed, 34 insertions(+), 40 deletions(-) diff --git a/pkgs/applications/gis/zombietrackergps/default.nix b/pkgs/applications/gis/zombietrackergps/default.nix index 47a4329ae19d..4acedbac2a2f 100644 --- a/pkgs/applications/gis/zombietrackergps/default.nix +++ b/pkgs/applications/gis/zombietrackergps/default.nix @@ -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 }; }