From 71c61fed8085f292c39c769024d67fccd0f514d2 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 31 Aug 2023 00:21:32 +0000 Subject: [PATCH 1/3] gpxsee: 13.4 -> 13.7 --- pkgs/applications/misc/gpxsee/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/gpxsee/default.nix b/pkgs/applications/misc/gpxsee/default.nix index c08deed34db0..babeb2a1044a 100644 --- a/pkgs/applications/misc/gpxsee/default.nix +++ b/pkgs/applications/misc/gpxsee/default.nix @@ -20,13 +20,13 @@ let in stdenv.mkDerivation rec { pname = "gpxsee"; - version = "13.4"; + version = "13.7"; src = fetchFromGitHub { owner = "tumic0"; repo = "GPXSee"; rev = version; - hash = "sha256-Zf2eyDx5QK69W6HNz/IGGHkX2qCDnxYsU8KLCgU9teY="; + hash = "sha256-Y3JcWkg0K724i/5Leyi8r26uKpq/aDwghJBG8xfxpd4="; }; buildInputs = [ qtpbfimageplugin qtserialport ] From 0ddd19256a26833be04e72bb8c7000fd4361b289 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Sat, 2 Sep 2023 22:05:15 +0200 Subject: [PATCH 2/3] gpxsee: use `finalAttrs` pattern --- pkgs/applications/misc/gpxsee/default.nix | 33 +++++++++++++---------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/pkgs/applications/misc/gpxsee/default.nix b/pkgs/applications/misc/gpxsee/default.nix index babeb2a1044a..890714c8c9e0 100644 --- a/pkgs/applications/misc/gpxsee/default.nix +++ b/pkgs/applications/misc/gpxsee/default.nix @@ -16,21 +16,22 @@ let isQt6 = lib.versions.major qtbase.version == "6"; - in -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "gpxsee"; version = "13.7"; src = fetchFromGitHub { owner = "tumic0"; repo = "GPXSee"; - rev = version; + rev = finalAttrs.version; hash = "sha256-Y3JcWkg0K724i/5Leyi8r26uKpq/aDwghJBG8xfxpd4="; }; - buildInputs = [ qtpbfimageplugin qtserialport ] - ++ (if isQt6 then [ + buildInputs = [ + qtpbfimageplugin + qtserialport + ] ++ (if isQt6 then [ qtbase qtpositioning qtsvg @@ -39,7 +40,11 @@ stdenv.mkDerivation rec { qtlocation ]); - nativeBuildInputs = [ qmake qttools wrapQtAppsHook ]; + nativeBuildInputs = [ + qmake + qttools + wrapQtAppsHook + ]; preConfigure = '' lrelease gpxsee.pro @@ -56,17 +61,17 @@ stdenv.mkDerivation rec { updateScript = nix-update-script { }; }; - meta = with lib; { + meta = { + broken = isQt6 && stdenv.isDarwin; + changelog = "https://build.opensuse.org/package/view_file/home:tumic:GPXSee/gpxsee/gpxsee.changes"; description = "GPS log file viewer and analyzer"; + homepage = "https://www.gpxsee.org/"; + license = lib.licenses.gpl3Only; longDescription = '' GPXSee is a Qt-based GPS log file viewer and analyzer that supports all common GPS log file formats. ''; - homepage = "https://www.gpxsee.org/"; - changelog = "https://build.opensuse.org/package/view_file/home:tumic:GPXSee/gpxsee/gpxsee.changes"; - license = licenses.gpl3Only; - maintainers = with maintainers; [ womfoo sikmir ]; - platforms = platforms.unix; - broken = isQt6 && stdenv.isDarwin; + maintainers = with lib.maintainers; [ womfoo sikmir ]; + platforms = lib.platforms.unix; }; -} +}) From da18bd17b62ecca39b671e43ec66c00f7066277a Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Sun, 3 Sep 2023 09:01:47 +0200 Subject: [PATCH 3/3] gpxsee: fix compilation on `darwin` --- pkgs/applications/misc/gpxsee/default.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkgs/applications/misc/gpxsee/default.nix b/pkgs/applications/misc/gpxsee/default.nix index 890714c8c9e0..42467e177ab2 100644 --- a/pkgs/applications/misc/gpxsee/default.nix +++ b/pkgs/applications/misc/gpxsee/default.nix @@ -7,7 +7,6 @@ , qttools , qtlocation ? null # qt5 only , qtpositioning ? null # qt6 only -, qtpbfimageplugin , qtserialport , qtsvg , qt5compat ? null # qt6 only @@ -29,7 +28,6 @@ stdenv.mkDerivation (finalAttrs: { }; buildInputs = [ - qtpbfimageplugin qtserialport ] ++ (if isQt6 then [ qtbase