Skip to content

Commit ea7d4aa

Browse files
author
Théophane Hufschmitt
authored
calibre: Fix build with CA derivations (#124227)
See NixOS/nix#4764
1 parent 8ab19de commit ea7d4aa

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

pkgs/applications/misc/calibre/default.nix

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,8 @@ mkDerivation rec {
4040
]
4141
++ lib.optional (!unrarSupport) ./dont_build_unrar_plugin.patch;
4242

43-
escaped_pyqt5_dir = builtins.replaceStrings ["/"] ["\\/"] (toString python3Packages.pyqt5);
44-
4543
prePatch = ''
46-
sed -i "s/\[tool.sip.project\]/[tool.sip.project]\nsip-include-dirs = [\"${escaped_pyqt5_dir}\/share\/sip\/PyQt5\"]/g" \
44+
sed -i "s@\[tool.sip.project\]@[tool.sip.project]\nsip-include-dirs = [\"${python3Packages.pyqt5}/share/sip/PyQt5\"]@g" \
4745
setup/build.py
4846
sed -i "s/\[tool.sip.bindings.pictureflow\]/[tool.sip.bindings.pictureflow]\ntags = [\"${python3Packages.sip.platform_tag}\"]/g" \
4947
setup/build.py

0 commit comments

Comments
 (0)