Change:
prePatch = '' substituteAll ${./paths.d} generated/gtkd/gtkd/paths.d <del> substituteInPlace src/cairo/gtkc/cairo-compiletime.d  </del> <ins> substituteInPlace src/cairo/c/functions-compiletime.d  </ins> --replace libcairo.so.2 ${cairo}/lib/libcairo.so.2  --replace libcairo.dylib ${cairo}/lib/libcairo.dylib <del> substituteInPlace src/cairo/gtkc/cairo-runtime.d  </del> <ins> substituteInPlace src/cairo/c/functions-runtime.d  </ins> --replace libcairo.so.2 ${cairo}/lib/libcairo.so.2  --replace libcairo.dylib ${cairo}/lib/libcairo.dylib <del> substituteInPlace generated/gtkd/gtkc/gdkpixbuf.d  </del> <ins> substituteInPlace generated/gtkd/gdkpixbuf/c/functions.d  </ins> --replace libgdk_pixbuf-2.0.so.0 ${gdk_pixbuf}/lib/libgdk_pixbuf-2.0.so.0  --replace libgdk_pixbuf-2.0.0.dylib ${gdk_pixbuf}/lib/libgdk_pixbuf-2.0.0.dylib <del> substituteInPlace generated/gtkd/gtkc/atk.d  </del> <ins> substituteInPlace generated/gtkd/atk/c/functions.d  </ins> --replace libatk-1.0.so.0 ${atk}/lib/libatk-1.0.so.0  --replace libatk-1.0.0.dylib ${atk}/lib/libatk-1.0.0.dylib <del> substituteInPlace generated/gtkd/gtkc/pango.d  </del> <ins> substituteInPlace generated/gtkd/pango/c/functions.d  </ins> --replace libpango-1.0.so.0 ${pango.out}/lib/libpango-1.0.so.0  --replace libpangocairo-1.0.so.0 ${pango.out}/lib/libpangocairo-1.0.so.0  --replace libpango-1.0.0.dylib ${pango.out}/lib/libpango-1.0.0.dylib  --replace libpangocairo-1.0.0.dylib ${pango.out}/lib/libpangocairo-1.0.0.dylib <del> substituteInPlace generated/gtkd/gtkc/gobject.d  </del> <ins> substituteInPlace generated/gtkd/gobject/c/functions.d  </ins> --replace libgobject-2.0.so.0 ${glib}/lib/libgobject-2.0.so.0  --replace libgobject-2.0.0.dylib ${glib}/lib/libgobject-2.0.0.dylib <del> substituteInPlace generated/gtkd/gtkc/rsvg.d  </del> <ins> substituteInPlace generated/gtkd/rsvg/c/functions.d  </ins> --replace librsvg-2.so.2 ${librsvg}/lib/librsvg-2.so.2  --replace librsvg-2.2.dylib ${librsvg}/lib/librsvg-2.2.dylib <del> substituteInPlace generated/gtkd/gtkc/cairo.d  </del> <ins> substituteInPlace generated/gtkd/cairo/c/functions.d  </ins> --replace libcairo.so.2 ${cairo}/lib/libcairo.so.2  --replace libcairo.dylib ${cairo}/lib/libcairo.dylib <del> substituteInPlace generated/gtkd/gtkc/gdk.d  </del> <ins> substituteInPlace generated/gtkd/gdk/c/functions.d  </ins> --replace libgdk-3.so.0 ${gtk3}/lib/libgdk-3.so.0  --replace libgdk-3.0.dylib ${gtk3}/lib/libgdk-3.0.dylib <del> substituteInPlace generated/peas/peasc/peas.d  </del> <ins> substituteInPlace generated/peas/peas/c/functions.d  </ins> --replace libpeas-1.0.so.0 ${libpeas}/lib/libpeas-1.0.so.0  --replace libpeas-gtk-1.0.so.0 ${libpeas}/lib/libpeas-gtk-1.0.so.0  --replace libpeas-1.0.0.dylib ${libpeas}/lib/libpeas-1.0.0.dylib  --replace gtk-1.0.0.dylib ${libpeas}/lib/gtk-1.0.0.dylib <del> substituteInPlace generated/vte/vtec/vte.d  </del> <ins> substituteInPlace generated/vte/vte/c/functions.d  </ins> --replace libvte-2.91.so.0 ${vte}/lib/libvte-2.91.so.0  --replace libvte-2.91.0.dylib ${vte}/lib/libvte-2.91.0.dylib <del> substituteInPlace generated/gstreamer/gstreamerc/gstinterfaces.d  </del> <ins> substituteInPlace generated/gstreamer/gstinterfaces/c/functions.d  </ins> --replace libgstvideo-1.0.so.0 ${gst_plugins_base}/lib/libgstvideo-1.0.so.0  --replace libgstvideo-1.0.0.dylib ${gst_plugins_base}/lib/libgstvideo-1.0.0.dylib <del> substituteInPlace generated/sourceview/gsvc/gsv.d  </del> <ins> substituteInPlace generated/sourceview/gsv/c/functions.d  </ins> --replace libgtksourceview-3.0.so.1 ${gtksourceview}/lib/libgtksourceview-3.0.so.1  --replace libgtksourceview-3.0.1.dylib ${gtksourceview}/lib/libgtksourceview-3.0.1.dylib <del> substituteInPlace generated/gtkd/gtkc/glib.d  </del> <ins> substituteInPlace generated/gtkd/glib/c/functions.d  </ins> --replace libglib-2.0.so.0 ${glib}/lib/libglib-2.0.so.0  --replace libgmodule-2.0.so.0 ${glib}/lib/libgmodule-2.0.so.0  --replace libgobject-2.0.so.0 ${glib}/lib/libgobject-2.0.so.0  --replace libglib-2.0.0.dylib ${glib}/lib/libglib-2.0.0.dylib  --replace libgmodule-2.0.0.dylib ${glib}/lib/libgmodule-2.0.0.dylib  --replace libgobject-2.0.0.dylib ${glib}/lib/libgobject-2.0.0.dylib <del> substituteInPlace generated/gtkd/gtkc/gio.d  </del> <ins> substituteInPlace generated/gtkd/gio/c/functions.d  </ins> --replace libgio-2.0.so.0 ${glib}/lib/libgio-2.0.so.0  --replace libgio-2.0.0.dylib ${glib}/lib/libgio-2.0.0.dylib <del> substituteInPlace generated/gstreamer/gstreamerc/gstreamer.d  </del> <ins> substituteInPlace generated/gstreamer/gstreamer/c/functions.d  </ins> --replace libgstreamer-1.0.so.0 ${gstreamer}/lib/libgstreamer-1.0.so.0  --replace libgstreamer-1.0.0.dylib ${gstreamer}/lib/libgstreamer-1.0.0.dylib <del> substituteInPlace generated/gtkd/gtkc/gtk.d  </del> <ins> substituteInPlace generated/gtkd/gtk/c/functions.d  </ins> --replace libgdk-3.so.0 ${gtk3}/lib/libgdk-3.so.0  --replace libgtk-3.so.0 ${gtk3}/lib/libgtk-3.so.0  --replace libgdk-3.0.dylib ${gtk3}/lib/libgdk-3.0.dylib 

Discussion:
Tilix allows changing its window title by simply clicking on the title itself in the titlebar. Then the title must be replaced by an input box. Instead of that, Tilix segfaults. Install Tilix. Launch Tilix. Click on Tilix titlebar. system: host os: multi-user?: sandbox: version: nixpkgs: