@@ -1,11 +1,27 @@
11{ lib, pkgs }:
22
33lib.makeScope pkgs.newScope (self: with self; {
4+ # ui can be: gtk2, gtk3, sixel, framebuffer. Note that console display (sixel)
5+ # requires a terminal that supports `sixel` capabilities, such as mlterm
6+ # or xterm -ti 340
7+ ui = "gtk3";
8+ uilib =
9+ if ui == "gtk2" ||
10+ ui == "gtk3" ||
11+ ui == "framebuffer" then ui
12+ else if ui == "sixel" then "framebuffer"
13+ else null; # Never will happen
14+ SDL =
15+ if ui == "sixel" then pkgs.SDL_sixel
16+ else if ui == "framebuffer" then pkgs.SDL
17+ else null;
18+
419 buildsystem = callPackage ./buildsystem.nix { };
520 libcss = callPackage ./libcss.nix { };
621 libdom = callPackage ./libdom.nix { };
722 libhubbub = callPackage ./libhubbub.nix { };
823 libnsbmp = callPackage ./libnsbmp.nix { };
24+ libnsfb = callPackage ./libnsfb.nix { };
925 libnsgif = callPackage ./libnsgif.nix { };
1026 libnslog = callPackage ./libnslog.nix { };
1127 libnspsl = callPackage ./libnspsl.nix { };