diff --git a/flake.nix b/flake.nix index 2480e97..9d56ede 100644 --- a/flake.nix +++ b/flake.nix @@ -28,7 +28,12 @@ nativeBuildInputs = with pkgs.kdePackages; [ qmake qttools wrapQtAppsHook ]; buildInputs = with pkgs.kdePackages; [ qtbase ]; - configurePhase = "qmake6 $src/src"; + # qmake's qtPrepareTool() hardcodes tool lookups to qtbase's own store + # path at mkspecs-generation time, but nixpkgs ships lrelease in + # kdePackages.qttools instead. Point it at the real binary explicitly. + configurePhase = '' + qmake6 $src/src "QT_TOOL.lrelease.binary=${pkgs.kdePackages.qttools}/bin/lrelease" + ''; buildPhase = "make -j$NIX_BUILD_CORES"; installPhase = ''