From f16e78d0a04270caf524a36c3beb1d00bc446f4d Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Fri, 28 May 2021 15:48:47 +0300 Subject: [PATCH] =?UTF-8?q?zombietrackergps:=201.03=20=E2=86=92=201.10?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gis/zombietrackergps/default.nix | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/gis/zombietrackergps/default.nix b/pkgs/applications/gis/zombietrackergps/default.nix index 51740b5ad609..f73748d420b2 100644 --- a/pkgs/applications/gis/zombietrackergps/default.nix +++ b/pkgs/applications/gis/zombietrackergps/default.nix @@ -11,13 +11,13 @@ mkDerivation rec { pname = "zombietrackergps"; - version = "1.03"; + version = "1.10"; src = fetchFromGitLab { owner = "ldutils-projects"; repo = pname; rev = "v_${version}"; - sha256 = "1rmdy6kijmcxamm4mqmz8638xqisijlnpv8mimgxywpf90h9rrwq"; + sha256 = "sha256-qRhCAOVWyDLD3WDptPRQVq+VwyFu83XQNaL5TMsGs4Y="; }; buildInputs = [ @@ -33,7 +33,10 @@ mkDerivation rec { ]; prePatch = '' - sed -ie "s,INCLUDEPATH += /usr/include/libldutils,INCLUDEPATH += ${ldutils}," ZombieTrackerGPS.pro + substituteInPlace ztgps.pro --replace "../libldutils" "libldutils" + substituteInPlace tests.pro --replace "../libldutils" "libldutils" + + ln -s ${ldutils} libldutils ''; preConfigure = '' @@ -41,10 +44,17 @@ mkDerivation rec { export INSTALL_ROOT=$out ''; - postConfigure = '' - substituteInPlace Makefile --replace '$(INSTALL_ROOT)' "" + preInstall = '' + substituteInPlace Makefile.ztgps --replace '$(INSTALL_ROOT)' "" + substituteInPlace Makefile.art --replace '$(INSTALL_ROOT)' "" ''; + postInstall = '' + install -Dm644 build/rcc/*.rcc -t $out/share/zombietrackergps + ''; + + qmakeFlags = [ "ZombieTrackerGPS.pro" ]; + meta = with lib; { description = "GPS track manager for Qt using KDE Marble maps"; homepage = "https://www.zombietrackergps.net/ztgps/";