@@ -29,10 +29,13 @@ stdenv.mkDerivation rec {
2929 patchShebangs fix-roff-punct
3030
3131 # XXX: Not needed for CMake:
32− patchShebangs share/palettes
33− patchShebangs share/patterns
34− patchShebangs share/symbols
35− patchShebangs share/templates
32+ ${lib.optionalString (!stdenv.isDarwin) ''
33+ patchShebangs share/filters
34+ patchShebangs share/palettes
35+ patchShebangs share/patterns
36+ patchShebangs share/symbols
37+ patchShebangs share/templates
38+ ''}
3639
3740 # Python is used at run-time to execute scripts, e.g., those from
3841 # the "Effects" menu.