From 198e025172ec7b96cce9057030b3b8fd3f061e45 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Thu, 8 Oct 2020 01:47:20 +0300 Subject: [PATCH] retext: Fix build by using default qt5.15. Bonus: Set `makeWrapperArgs` instead of calling `wrapQtApp` - to prevent double wrapping. --- pkgs/applications/editors/retext/default.nix | 6 ++++-- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/editors/retext/default.nix b/pkgs/applications/editors/retext/default.nix index 7752313b2a7e..c32e83157561 100644 --- a/pkgs/applications/editors/retext/default.nix +++ b/pkgs/applications/editors/retext/default.nix @@ -46,11 +46,13 @@ in python.pkgs.buildPythonApplication { propagatedBuildInputs = [ pythonEnv ]; postInstall = '' - wrapQtApp "$out/bin/retext" \ - --set ASPELL_CONF "dict-dir ${buildEnv { + makeWrapperArgs+=("''${qtWrapperArgs[@]}") + makeWrapperArgs+=( + "--set" "ASPELL_CONF" "dict-dir ${buildEnv { name = "aspell-all-dicts"; paths = map (path: "${path}/lib/aspell") enchantAspellDicts; }}" + ) ''; meta = with stdenv.lib; { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ddf655dcc5b8..603d0828afc5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6595,7 +6595,7 @@ in reredirect = callPackage ../tools/misc/reredirect { }; - retext = libsForQt514.callPackage ../applications/editors/retext { }; + retext = libsForQt5.callPackage ../applications/editors/retext { }; richgo = callPackage ../development/tools/richgo { };