Skip to content

Commit 440a5e9

Browse files
committed
sigil: wrap qt app
1 parent 252f591 commit 440a5e9

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

pkgs/applications/editors/sigil/default.nix

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
fetchFromGitHub,
55
cmake,
66
pkg-config,
7-
makeWrapper,
87
boost,
98
xercesc,
109
qtbase,
1110
qttools,
1211
qtwebengine,
1312
qtsvg,
1413
python3Packages,
14+
wrapQtAppsHook,
1515
}:
1616

1717
stdenv.mkDerivation rec {
@@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
3030
nativeBuildInputs = [
3131
cmake
3232
pkg-config
33-
makeWrapper
33+
wrapQtAppsHook
3434
];
3535

3636
buildInputs = [
@@ -47,12 +47,8 @@ stdenv.mkDerivation rec {
4747
sed -i '/^QTLIB_DIR=/ d' src/Resource_Files/bash/sigil-sh_install
4848
'';
4949

50-
dontWrapQtApps = true;
51-
5250
preFixup = ''
53-
wrapProgram "$out/bin/sigil" \
54-
--prefix PYTHONPATH : $PYTHONPATH \
55-
''${qtWrapperArgs[@]}
51+
qtWrapperArgs+=(--prefix PYTHONPATH : "$PYTHONPATH")
5652
'';
5753

5854
meta = {

0 commit comments

Comments
 (0)