w3m: Add a variant without graphics support and use for NixOS manual
This gets rid of various graphics libraries from the minimal installer.
commit696c6bed4e8e2d9fd9b956dea7e5d49531e9d13f
authorTuomas Tynkkynen <tuomas@tuxera.com>
dateThu 24 May 2018, 00:55 (9 years ago)
parentf8dc087
nixos/modules/services/misc/nixos-manual.nix+1−1
@@ -99,7 +99,7 @@ in
9999
100100 services.nixosManual.browser = mkOption {
101101 type = types.path;
102− default = "${pkgs.w3m-nox}/bin/w3m";
102+ default = "${pkgs.w3m-nographics}/bin/w3m";
103103 description = ''
104104 Browser used to show the manual.
105105 '';
pkgs/top-level/all-packages.nix+6
@@ -18552,6 +18552,12 @@ with pkgs;
1855218552 imlib2 = imlib2-nox;
1855318553 };
1855418554
18555+ # Version without X11 or graphics
18556+ w3m-nographics = w3m.override {
18557+ x11Support = false;
18558+ graphicsSupport = false;
18559+ };
18560+
1855518561 # Version for batch text processing, not a good browser
1855618562 w3m-batch = w3m.override {
1855718563 graphicsSupport = false;