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.
···54 substituteAll ${./nufraw.thumbnailer} $out/share/thumbnailers/${pname}.thumbnailer
55 '';
56000057 meta = with lib; {
58 homepage = "https://nufraw.sourceforge.io/";
59 description = "Utility to read and manipulate raw images from digital cameras";
···54 substituteAll ${./nufraw.thumbnailer} $out/share/thumbnailers/${pname}.thumbnailer
55 '';
5657+ # Fixes an upstream issue where headers with templates were included in an extern-C scope
58+ # which caused the build to fail
59+ patches = [ ./move-extern-c.patch ];
60+61 meta = with lib; {
62 homepage = "https://nufraw.sourceforge.io/";
63 description = "Utility to read and manipulate raw images from digital cameras";