Getting Netsurf to work in the framebuffer

Netsurf can be built with the framebuffer library, so you can open it directly in a TTY, or so I have been told.

I am trying to get this to work with the following command:

nix-shell -p netsurf.browser.override { uilib="framebuffer"; }

However it gives an error during the build. The netsurf.browser package comes as default with the GTK3 library.

There is also the netsurf.libnsfb package, which contains the library, but not the netsurf program. I am not sure how I would combine the two, or if I even need to do so.

Any help with this is much appreciated.

You just missed the single quotes:

nix-shell -p 'netsurf.browser.override { uilib="framebuffer"; }'

It throws the same error regardless of whether I put the single-quotes. Because I think I also added the netsurf.browser.override ... line directly into my config.

The maintainer gave me a pointer that it must have something to do with the NIX_CFLAGS_COMPILE variable, that has changed recently in the GCC, but unfortunately I haven’t had any succes yet.