@@ -1,4 +1,6 @@
1−{ stdenv, mkDerivation, lib, fetchFromGitHub, qmake, qttools, qttranslations }:
1+{ stdenv, mkDerivation, lib, fetchFromGitHub, substituteAll
2+, qmake, qttools, qttranslations
3+}:
24
35mkDerivation rec {
46 pname = "gpxlab";
@@ -11,8 +13,13 @@ mkDerivation rec {
1113 sha256 = "080vnwcciqblfrbfyz9gjhl2lqw1hkdpbgr5qfrlyglkd4ynjd84";
1214 };
1315
14− nativeBuildInputs = [ qmake ];
15− buildInputs = [ qttools qttranslations ];
16+ patches = (substituteAll {
17+ # See https://github.com/NixOS/nixpkgs/issues/86054
18+ src = ./fix-qttranslations-path.patch;
19+ inherit qttranslations;
20+ });
21+
22+ nativeBuildInputs = [ qmake qttools ];
1623
1724 preConfigure = ''
1825 lrelease GPXLab/locale/*.ts
@@ -24,8 +31,6 @@ mkDerivation rec {
2431 wrapQtApp $out/Applications/GPXLab.app/Contents/MacOS/GPXLab
2532 '';
2633
27− enableParallelBuilding = true;
28−
2934 meta = with lib; {
3035 homepage = "https://github.com/BourgeoisLab/GPXLab";
3136 description = "Program to show and manipulate GPS tracks";
@@ -33,8 +38,8 @@ mkDerivation rec {
3338 GPXLab is an application to display and manage GPS tracks
3439 previously recorded with a GPS tracker.
3540 '';
36− license = licenses.gpl3;
41+ license = licenses.gpl3Only;
3742 maintainers = with maintainers; [ sikmir ];
38− platforms = with platforms; linux ++ darwin;
43+ platforms = platforms.unix;
3944 };
4045}