diff options
author | ahiaao <ahiaao@waifu.club> | 2019-11-16 23:50:07 -0800 |
---|---|---|
committer | ahiaao <ahiaao@waifu.club> | 2019-11-16 23:50:07 -0800 |
commit | 145652462b9f89a29094f6b2b1e4c1faa2935c2e (patch) | |
tree | 69987da994204aac73f81bdfc456ee30cf066470 /pkgs/applications/editors/retext | |
parent | d3ac0e987cb6e566668f57923f8bb6d6e1e89572 (diff) |
retext: properly wrap with wrapQtApp
Diffstat (limited to 'pkgs/applications/editors/retext')
-rw-r--r-- | pkgs/applications/editors/retext/default.nix | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pkgs/applications/editors/retext/default.nix b/pkgs/applications/editors/retext/default.nix index 31b75c718206..e97423892616 100644 --- a/pkgs/applications/editors/retext/default.nix +++ b/pkgs/applications/editors/retext/default.nix @@ -1,4 +1,4 @@ -{ stdenv, python3, fetchFromGitHub, makeWrapper, buildEnv, aspellDicts +{ stdenv, python3, fetchFromGitHub, wrapQtAppsHook, buildEnv, aspellDicts # Use `lib.collect lib.isDerivation aspellDicts;` to make all dictionaries # available. , enchantAspellDicts ? with aspellDicts; [ en en-computers en-science ] @@ -42,12 +42,11 @@ in python.pkgs.buildPythonApplication { doCheck = false; - nativeBuildInputs = [ makeWrapper ]; + nativeBuildInputs = [ wrapQtAppsHook ]; propagatedBuildInputs = [ pythonEnv ]; postInstall = '' - mv $out/bin/retext $out/bin/.retext - makeWrapper "$out/bin/.retext" "$out/bin/retext" \ + wrapQtApp "$out/bin/retext" \ --set ASPELL_CONF "dict-dir ${buildEnv { name = "aspell-all-dicts"; paths = map (path: "${path}/lib/aspell") enchantAspellDicts; |