retext: properly wrap with wrapQtApp
This commit is contained in:
parent
d3ac0e987c
commit
145652462b
2 changed files with 4 additions and 5 deletions
|
@ -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
|
# Use `lib.collect lib.isDerivation aspellDicts;` to make all dictionaries
|
||||||
# available.
|
# available.
|
||||||
, enchantAspellDicts ? with aspellDicts; [ en en-computers en-science ]
|
, enchantAspellDicts ? with aspellDicts; [ en en-computers en-science ]
|
||||||
|
@ -42,12 +42,11 @@ in python.pkgs.buildPythonApplication {
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ wrapQtAppsHook ];
|
||||||
propagatedBuildInputs = [ pythonEnv ];
|
propagatedBuildInputs = [ pythonEnv ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mv $out/bin/retext $out/bin/.retext
|
wrapQtApp "$out/bin/retext" \
|
||||||
makeWrapper "$out/bin/.retext" "$out/bin/retext" \
|
|
||||||
--set ASPELL_CONF "dict-dir ${buildEnv {
|
--set ASPELL_CONF "dict-dir ${buildEnv {
|
||||||
name = "aspell-all-dicts";
|
name = "aspell-all-dicts";
|
||||||
paths = map (path: "${path}/lib/aspell") enchantAspellDicts;
|
paths = map (path: "${path}/lib/aspell") enchantAspellDicts;
|
||||||
|
|
|
@ -5946,7 +5946,7 @@ in
|
||||||
|
|
||||||
redsocks = callPackage ../tools/networking/redsocks { };
|
redsocks = callPackage ../tools/networking/redsocks { };
|
||||||
|
|
||||||
retext = callPackage ../applications/editors/retext { };
|
retext = libsForQt5.callPackage ../applications/editors/retext { };
|
||||||
|
|
||||||
richgo = callPackage ../development/tools/richgo { };
|
richgo = callPackage ../development/tools/richgo { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue