Skip to content

Commit

Permalink
calibre: Fix build with CA derivations (#124227)
Browse files Browse the repository at this point in the history
  • Loading branch information
Théophane Hufschmitt authored May 24, 2021
1 parent 8ab19de commit ea7d4aa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkgs/applications/misc/calibre/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ mkDerivation rec {
]
++ lib.optional (!unrarSupport) ./dont_build_unrar_plugin.patch;

escaped_pyqt5_dir = builtins.replaceStrings ["/"] ["\\/"] (toString python3Packages.pyqt5);

prePatch = ''
sed -i "s/\[tool.sip.project\]/[tool.sip.project]\nsip-include-dirs = [\"${escaped_pyqt5_dir}\/share\/sip\/PyQt5\"]/g" \
sed -i "s@\[tool.sip.project\]@[tool.sip.project]\nsip-include-dirs = [\"${python3Packages.pyqt5}/share/sip/PyQt5\"]@g" \
setup/build.py
sed -i "s/\[tool.sip.bindings.pictureflow\]/[tool.sip.bindings.pictureflow]\ntags = [\"${python3Packages.sip.platform_tag}\"]/g" \
setup/build.py
Expand Down

0 comments on commit ea7d4aa

Please sign in to comment.