w3m: Add a variant without graphics support and use for NixOS manual

This gets rid of various graphics libraries from the minimal installer.
This commit is contained in:
Tuomas Tynkkynen 2018-05-24 00:55:05 +03:00
parent f8dc087c71
commit 696c6bed4e
2 changed files with 7 additions and 1 deletions

View File

@ -99,7 +99,7 @@ in
services.nixosManual.browser = mkOption {
type = types.path;
default = "${pkgs.w3m-nox}/bin/w3m";
default = "${pkgs.w3m-nographics}/bin/w3m";
description = ''
Browser used to show the manual.
'';

View File

@ -18552,6 +18552,12 @@ with pkgs;
imlib2 = imlib2-nox;
};
# Version without X11 or graphics
w3m-nographics = w3m.override {
x11Support = false;
graphicsSupport = false;
};
# Version for batch text processing, not a good browser
w3m-batch = w3m.override {
graphicsSupport = false;