Sources would include glib-headers from within an extern-C scope. Since glib-headers contained templates, this would fail. Add a patch to move the header includes outside of the extern-C scope.
···5454 substituteAll ${./nufraw.thumbnailer} $out/share/thumbnailers/${pname}.thumbnailer
5555 '';
56565757+ # Fixes an upstream issue where headers with templates were included in an extern-C scope
5858+ # which caused the build to fail
5959+ patches = [ ./move-extern-c.patch ];
6060+5761 meta = with lib; {
5862 homepage = "https://nufraw.sourceforge.io/";
5963 description = "Utility to read and manipulate raw images from digital cameras";