···11+commit 8a3f903b20d646ebb2472c4f094ca1bf225a96c7
22+Author: Michael Weiss <dev.primeos@gmail.com>
33+Date: Fri May 14 19:19:05 2021 +0200
44+55+ Fix the build with wlroots 0.13
66+77+diff --git a/main.c b/main.c
88+index 5d7dcda..870fdb0 100644
99+--- a/main.c
1010++++ b/main.c
1111+@@ -1,6 +1,7 @@
1212+ #define _POSIX_C_SOURCE 200809L
1313+ #include <assert.h>
1414+ #include <cairo/cairo.h>
1515++#include <libdrm/drm_fourcc.h>
1616+ #include <getopt.h>
1717+ #include <stdlib.h>
1818+ #include <string.h>
1919+@@ -49,7 +50,7 @@ static void gen_menu_textures(struct wio_server *server) {
2020+ cairo_surface_flush(surf);
2121+ unsigned char *data = cairo_image_surface_get_data(surf);
2222+ server->menu.inactive_textures[i] = wlr_texture_from_pixels(renderer,
2323+- WL_SHM_FORMAT_ARGB8888,
2424++ DRM_FORMAT_ARGB8888,
2525+ cairo_image_surface_get_stride(surf),
2626+ extents.width + 2, extents.height + 2, data);
2727+ }
2828+@@ -66,7 +67,7 @@ static void gen_menu_textures(struct wio_server *server) {
2929+ cairo_surface_flush(surf);
3030+ unsigned char *data = cairo_image_surface_get_data(surf);
3131+ server->menu.active_textures[i] = wlr_texture_from_pixels(renderer,
3232+- WL_SHM_FORMAT_ARGB8888,
3333++ DRM_FORMAT_ARGB8888,
3434+ cairo_image_surface_get_stride(surf),
3535+ extents.width + 2, extents.height + 2, data);
3636+ }
3737+@@ -152,7 +153,7 @@ int main(int argc, char **argv) {
3838+ }
3939+4040+ server.wl_display = wl_display_create();
4141+- server.backend = wlr_backend_autocreate(server.wl_display, NULL);
4242++ server.backend = wlr_backend_autocreate(server.wl_display);
4343+ server.renderer = wlr_backend_get_renderer(server.backend);
4444+ wlr_renderer_init_wl_display(server.renderer, server.wl_display);
4545+4646+diff --git a/protocols/wlr-layer-shell-unstable-v1.xml b/protocols/wlr-layer-shell-unstable-v1.xml
4747+index 90b8bc8..d62fd51 100644
4848+--- a/protocols/wlr-layer-shell-unstable-v1.xml
4949++++ b/protocols/wlr-layer-shell-unstable-v1.xml
5050+@@ -25,7 +25,7 @@
5151+ THIS SOFTWARE.
5252+ </copyright>
5353+5454+- <interface name="zwlr_layer_shell_v1" version="1">
5555++ <interface name="zwlr_layer_shell_v1" version="4">
5656+ <description summary="create surfaces that are layers of the desktop">
5757+ Clients can use this interface to assign the surface_layer role to
5858+ wl_surfaces. Such surfaces are assigned to a "layer" of the output and
5959+@@ -47,6 +47,12 @@
6060+ or manipulate a buffer prior to the first layer_surface.configure call
6161+ must also be treated as errors.
6262+6363++ After creating a layer_surface object and setting it up, the client
6464++ must perform an initial commit without any buffer attached.
6565++ The compositor will reply with a layer_surface.configure event.
6666++ The client must acknowledge it and is then allowed to attach a buffer
6767++ to map the surface.
6868++
6969+ You may pass NULL for output to allow the compositor to decide which
7070+ output to use. Generally this will be the one that the user most
7171+ recently interacted with.
7272+@@ -82,17 +88,35 @@
7373+ <entry name="top" value="2"/>
7474+ <entry name="overlay" value="3"/>
7575+ </enum>
7676++
7777++ <!-- Version 3 additions -->
7878++
7979++ <request name="destroy" type="destructor" since="3">
8080++ <description summary="destroy the layer_shell object">
8181++ This request indicates that the client will not use the layer_shell
8282++ object any more. Objects that have been created through this instance
8383++ are not affected.
8484++ </description>
8585++ </request>
8686+ </interface>
8787+8888+- <interface name="zwlr_layer_surface_v1" version="1">
8989++ <interface name="zwlr_layer_surface_v1" version="4">
9090+ <description summary="layer metadata interface">
9191+ An interface that may be implemented by a wl_surface, for surfaces that
9292+ are designed to be rendered as a layer of a stacked desktop-like
9393+ environment.
9494+9595+- Layer surface state (size, anchor, exclusive zone, margin, interactivity)
9696+- is double-buffered, and will be applied at the time wl_surface.commit of
9797+- the corresponding wl_surface is called.
9898++ Layer surface state (layer, size, anchor, exclusive zone,
9999++ margin, interactivity) is double-buffered, and will be applied at the
100100++ time wl_surface.commit of the corresponding wl_surface is called.
101101++
102102++ Attaching a null buffer to a layer surface unmaps it.
103103++
104104++ Unmapping a layer_surface means that the surface cannot be shown by the
105105++ compositor until it is explicitly mapped again. The layer_surface
106106++ returns to the state it had right after layer_shell.get_layer_surface.
107107++ The client can re-map the surface by performing a commit without any
108108++ buffer attached, waiting for a configure event and handling it as usual.
109109+ </description>
110110+111111+ <request name="set_size">
112112+@@ -127,14 +151,19 @@
113113+114114+ <request name="set_exclusive_zone">
115115+ <description summary="configures the exclusive geometry of this surface">
116116+- Requests that the compositor avoids occluding an area of the surface
117117+- with other surfaces. The compositor's use of this information is
118118++ Requests that the compositor avoids occluding an area with other
119119++ surfaces. The compositor's use of this information is
120120+ implementation-dependent - do not assume that this region will not
121121+ actually be occluded.
122122+123123+- A positive value is only meaningful if the surface is anchored to an
124124+- edge, rather than a corner. The zone is the number of surface-local
125125+- coordinates from the edge that is considered exclusive.
126126++ A positive value is only meaningful if the surface is anchored to one
127127++ edge or an edge and both perpendicular edges. If the surface is not
128128++ anchored, anchored to only two perpendicular edges (a corner), anchored
129129++ to only two parallel edges or anchored to all edges, a positive value
130130++ will be treated the same as zero.
131131++
132132++ A positive zone is the distance from the edge in surface-local
133133++ coordinates to consider exclusive.
134134+135135+ Surfaces that do not wish to have an exclusive zone may instead specify
136136+ how they should interact with surfaces that do. If set to zero, the
137137+@@ -174,21 +203,85 @@
138138+ <arg name="left" type="int"/>
139139+ </request>
140140+141141++ <enum name="keyboard_interactivity">
142142++ <description summary="types of keyboard interaction possible for a layer shell surface">
143143++ Types of keyboard interaction possible for layer shell surfaces. The
144144++ rationale for this is twofold: (1) some applications are not interested
145145++ in keyboard events and not allowing them to be focused can improve the
146146++ desktop experience; (2) some applications will want to take exclusive
147147++ keyboard focus.
148148++ </description>
149149++
150150++ <entry name="none" value="0">
151151++ <description summary="no keyboard focus is possible">
152152++ This value indicates that this surface is not interested in keyboard
153153++ events and the compositor should never assign it the keyboard focus.
154154++
155155++ This is the default value, set for newly created layer shell surfaces.
156156++
157157++ This is useful for e.g. desktop widgets that display information or
158158++ only have interaction with non-keyboard input devices.
159159++ </description>
160160++ </entry>
161161++ <entry name="exclusive" value="1">
162162++ <description summary="request exclusive keyboard focus">
163163++ Request exclusive keyboard focus if this surface is above the shell surface layer.
164164++
165165++ For the top and overlay layers, the seat will always give
166166++ exclusive keyboard focus to the top-most layer which has keyboard
167167++ interactivity set to exclusive. If this layer contains multiple
168168++ surfaces with keyboard interactivity set to exclusive, the compositor
169169++ determines the one receiving keyboard events in an implementation-
170170++ defined manner. In this case, no guarantee is made when this surface
171171++ will receive keyboard focus (if ever).
172172++
173173++ For the bottom and background layers, the compositor is allowed to use
174174++ normal focus semantics.
175175++
176176++ This setting is mainly intended for applications that need to ensure
177177++ they receive all keyboard events, such as a lock screen or a password
178178++ prompt.
179179++ </description>
180180++ </entry>
181181++ <entry name="on_demand" value="2" since="4">
182182++ <description summary="request regular keyboard focus semantics">
183183++ This requests the compositor to allow this surface to be focused and
184184++ unfocused by the user in an implementation-defined manner. The user
185185++ should be able to unfocus this surface even regardless of the layer
186186++ it is on.
187187++
188188++ Typically, the compositor will want to use its normal mechanism to
189189++ manage keyboard focus between layer shell surfaces with this setting
190190++ and regular toplevels on the desktop layer (e.g. click to focus).
191191++ Nevertheless, it is possible for a compositor to require a special
192192++ interaction to focus or unfocus layer shell surfaces (e.g. requiring
193193++ a click even if focus follows the mouse normally, or providing a
194194++ keybinding to switch focus between layers).
195195++
196196++ This setting is mainly intended for desktop shell components (e.g.
197197++ panels) that allow keyboard interaction. Using this option can allow
198198++ implementing a desktop shell that can be fully usable without the
199199++ mouse.
200200++ </description>
201201++ </entry>
202202++ </enum>
203203++
204204+ <request name="set_keyboard_interactivity">
205205+ <description summary="requests keyboard events">
206206+- Set to 1 to request that the seat send keyboard events to this layer
207207+- surface. For layers below the shell surface layer, the seat will use
208208+- normal focus semantics. For layers above the shell surface layers, the
209209+- seat will always give exclusive keyboard focus to the top-most layer
210210+- which has keyboard interactivity set to true.
211211++ Set how keyboard events are delivered to this surface. By default,
212212++ layer shell surfaces do not receive keyboard events; this request can
213213++ be used to change this.
214214++
215215++ This setting is inherited by child surfaces set by the get_popup
216216++ request.
217217+218218+ Layer surfaces receive pointer, touch, and tablet events normally. If
219219+ you do not want to receive them, set the input region on your surface
220220+ to an empty region.
221221+222222+- Events is double-buffered, see wl_surface.commit.
223223++ Keyboard interactivity is double-buffered, see wl_surface.commit.
224224+ </description>
225225+- <arg name="keyboard_interactivity" type="uint"/>
226226++ <arg name="keyboard_interactivity" type="uint" enum="keyboard_interactivity"/>
227227+ </request>
228228+229229+ <request name="get_popup">
230230+@@ -273,6 +366,7 @@
231231+ <entry name="invalid_surface_state" value="0" summary="provided surface state is invalid"/>
232232+ <entry name="invalid_size" value="1" summary="size is invalid"/>
233233+ <entry name="invalid_anchor" value="2" summary="anchor bitfield is invalid"/>
234234++ <entry name="invalid_keyboard_interactivity" value="3" summary="keyboard interactivity is invalid"/>
235235+ </enum>
236236+237237+ <enum name="anchor" bitfield="true">
238238+@@ -281,5 +375,16 @@
239239+ <entry name="left" value="4" summary="the left edge of the anchor rectangle"/>
240240+ <entry name="right" value="8" summary="the right edge of the anchor rectangle"/>
241241+ </enum>
242242++
243243++ <!-- Version 2 additions -->
244244++
245245++ <request name="set_layer" since="2">
246246++ <description summary="change the layer of the surface">
247247++ Change the layer that the surface is rendered on.
248248++
249249++ Layer is double-buffered, see wl_surface.commit.
250250++ </description>
251251++ <arg name="layer" type="uint" enum="zwlr_layer_shell_v1.layer" summary="layer to move this surface to"/>
252252++ </request>
253253+ </interface>
254254+ </protocol>
···1616 inherit (pythonPackages) buildPythonPackage python isPy3k dbus-python enum34;
17171818 sip = if isPy3k then
1919- pythonPackages.sip_5
1919+ pythonPackages.sip
2020 else
2121- (pythonPackages.sip.override { sip-module = "PyQt5.sip"; }).overridePythonAttrs(oldAttrs: {
2121+ (pythonPackages.sip_4.override { sip-module = "PyQt5.sip"; }).overridePythonAttrs(oldAttrs: {
2222 # If we install sip in another folder, then we need to create a __init__.py as well
2323 # if we want to be able to import it with Python 2.
2424 # Python 3 could rely on it being an implicit namespace package, however,
···5566 pname = "caprice32";
77 version = "4.6.0";
88+ # NOTE: When bumping version beyond 4.6.0, you likely need to remove
99+ # string.patch below. The fix of this patch has already been
1010+ # done upstream but is not yet part of a release
811912 src = fetchFromGitHub {
1013 repo = "caprice32";
···15181619 nativeBuildInputs = [ desktop-file-utils pkg-config ];
1720 buildInputs = [ libpng SDL freetype zlib ];
2121+2222+ patches = [ ./string.patch ];
18231924 makeFlags = [
2025 "APP_PATH=${placeholder "out"}/share/caprice32"
···674674 rxvt_unicode-with-plugins = rxvt-unicode; # added 2020-02-02
675675 rxvt_unicode = rxvt-unicode-unwrapped; # added 2020-02-02
676676 subversion19 = throw "subversion19 has been removed as it has reached its end of life"; # added 2021-03-31
677677+ thunderbird-68 = throw "Thunderbird 68 reached end of life with its final release 68.12.0 on 2020-08-25 and was therefore removed from nixpkgs";
678678+ thunderbird-bin-68 = throw "Thunderbird 68 reached end of life with its final release 68.12.0 on 2020-08-25 and was therefore removed from nixpkgs";
677679 togglesg-download = throw "togglesg-download was removed 2021-04-30 as it's unmaintained";
678680 urxvt_autocomplete_all_the_things = rxvt-unicode-plugins.autocomplete-all-the-things; # added 2020-02-02
679681 urxvt_perl = rxvt-unicode-plugins.perl; # added 2020-02-02
+145-159
pkgs/top-level/all-packages.nix
···472472473473 # `fetchurl' downloads a file from the network.
474474 fetchurl = if stdenv.buildPlatform != stdenv.hostPlatform
475475- then buildPackages.fetchurl # No need to do special overrides twice,
476476- else makeOverridable (import ../build-support/fetchurl) {
477477- inherit lib stdenvNoCC buildPackages;
478478- inherit cacert;
479479- curl = buildPackages.curlMinimal.override (old: rec {
480480- # break dependency cycles
481481- fetchurl = stdenv.fetchurlBoot;
482482- zlib = buildPackages.zlib.override { fetchurl = stdenv.fetchurlBoot; };
483483- pkg-config = buildPackages.pkg-config.override (old: {
484484- pkg-config = old.pkg-config.override {
485485- fetchurl = stdenv.fetchurlBoot;
486486- };
487487- });
488488- perl = buildPackages.perl.override { fetchurl = stdenv.fetchurlBoot; };
489489- openssl = buildPackages.openssl.override {
475475+ then buildPackages.fetchurl # No need to do special overrides twice,
476476+ else makeOverridable (import ../build-support/fetchurl) {
477477+ inherit lib stdenvNoCC buildPackages;
478478+ inherit cacert;
479479+ curl = buildPackages.curlMinimal.override (old: rec {
480480+ # break dependency cycles
490481 fetchurl = stdenv.fetchurlBoot;
491491- buildPackages = {
492492- coreutils = buildPackages.coreutils.override {
482482+ zlib = buildPackages.zlib.override { fetchurl = stdenv.fetchurlBoot; };
483483+ pkg-config = buildPackages.pkg-config.override (old: {
484484+ pkg-config = old.pkg-config.override {
493485 fetchurl = stdenv.fetchurlBoot;
486486+ };
487487+ });
488488+ perl = buildPackages.perl.override { fetchurl = stdenv.fetchurlBoot; };
489489+ openssl = buildPackages.openssl.override {
490490+ fetchurl = stdenv.fetchurlBoot;
491491+ buildPackages = {
492492+ coreutils = buildPackages.coreutils.override {
493493+ fetchurl = stdenv.fetchurlBoot;
494494+ inherit perl;
495495+ xz = buildPackages.xz.override { fetchurl = stdenv.fetchurlBoot; };
496496+ gmp = null;
497497+ aclSupport = false;
498498+ attrSupport = false;
499499+ };
494500 inherit perl;
495495- xz = buildPackages.xz.override { fetchurl = stdenv.fetchurlBoot; };
496496- gmp = null;
497497- aclSupport = false;
498498- attrSupport = false;
499501 };
500502 inherit perl;
501503 };
502502- inherit perl;
503503- };
504504- libssh2 = buildPackages.libssh2.override {
505505- fetchurl = stdenv.fetchurlBoot;
506506- inherit zlib openssl;
507507- };
508508- # On darwin, libkrb5 needs bootstrap_cmds which would require
509509- # converting many packages to fetchurl_boot to avoid evaluation cycles.
510510- # So turn gssSupport off there, and on Windows.
511511- # On other platforms, keep the previous value.
512512- gssSupport =
513513- if stdenv.isDarwin || stdenv.hostPlatform.isWindows
514514- then false
515515- else old.gssSupport or true; # `? true` is the default
516516- libkrb5 = buildPackages.libkrb5.override {
517517- fetchurl = stdenv.fetchurlBoot;
518518- inherit pkg-config perl openssl;
519519- keyutils = buildPackages.keyutils.override { fetchurl = stdenv.fetchurlBoot; };
520520- };
521521- nghttp2 = buildPackages.nghttp2.override {
522522- fetchurl = stdenv.fetchurlBoot;
523523- inherit zlib pkg-config openssl;
524524- c-ares = buildPackages.c-ares.override { fetchurl = stdenv.fetchurlBoot; };
525525- libev = buildPackages.libev.override { fetchurl = stdenv.fetchurlBoot; };
526526- };
527527- });
528528- };
504504+ libssh2 = buildPackages.libssh2.override {
505505+ fetchurl = stdenv.fetchurlBoot;
506506+ inherit zlib openssl;
507507+ };
508508+ # On darwin, libkrb5 needs bootstrap_cmds which would require
509509+ # converting many packages to fetchurl_boot to avoid evaluation cycles.
510510+ # So turn gssSupport off there, and on Windows.
511511+ # On other platforms, keep the previous value.
512512+ gssSupport =
513513+ if stdenv.isDarwin || stdenv.hostPlatform.isWindows
514514+ then false
515515+ else old.gssSupport or true; # `? true` is the default
516516+ libkrb5 = buildPackages.libkrb5.override {
517517+ fetchurl = stdenv.fetchurlBoot;
518518+ inherit pkg-config perl openssl;
519519+ keyutils = buildPackages.keyutils.override { fetchurl = stdenv.fetchurlBoot; };
520520+ };
521521+ nghttp2 = buildPackages.nghttp2.override {
522522+ fetchurl = stdenv.fetchurlBoot;
523523+ inherit zlib pkg-config openssl;
524524+ c-ares = buildPackages.c-ares.override { fetchurl = stdenv.fetchurlBoot; };
525525+ libev = buildPackages.libev.override { fetchurl = stdenv.fetchurlBoot; };
526526+ };
527527+ });
528528+ };
529529530530 fetchRepoProject = callPackage ../build-support/fetchrepoproject { };
531531···14851485 grc = python3Packages.callPackage ../tools/misc/grc { };
1486148614871487 green-pdfviewer = callPackage ../applications/misc/green-pdfviewer {
14881488- SDL = SDL_sixel;
14881488+ SDL = SDL_sixel;
14891489 };
1490149014911491 gremlin-console = callPackage ../applications/misc/gremlin-console {
···42444244 wallutils = callPackage ../tools/graphics/wallutils { };
4245424542464246 wrangler = callPackage ../development/tools/wrangler {
42474247- inherit (darwin.apple_sdk.frameworks) CoreFoundation CoreServices Security;
42474247+ inherit (darwin.apple_sdk.frameworks) CoreFoundation CoreServices Security;
42484248 };
4249424942504250 wsl-open = callPackage ../tools/misc/wsl-open { };
···5149514951505150 gnu-pw-mgr = callPackage ../tools/security/gnu-pw-mgr { };
5151515151525152- gnused = if !stdenv.hostPlatform.isWindows then
51535153- callPackage ../tools/text/gnused { } # broken on Windows
51545154- else
51555155- gnused_422;
51525152+ gnused = if !stdenv.hostPlatform.isWindows
51535153+ then callPackage ../tools/text/gnused { } # broken on Windows
51545154+ else gnused_422;
51565155 # This is an easy work-around for [:space:] problems.
51575156 gnused_422 = callPackage ../tools/text/gnused/422.nix { };
51585157···1130811307 mint = callPackage ../development/compilers/mint { };
11309113081131011309 mitscheme = callPackage ../development/compilers/mit-scheme {
1131111311- texLive = texlive.combine { inherit (texlive) scheme-small; };
1131211312- texinfo = texinfo5;
1131311313- xlibsWrapper = null;
1131011310+ texLive = texlive.combine { inherit (texlive) scheme-small; };
1131111311+ texinfo = texinfo5;
1131211312+ xlibsWrapper = null;
1131411313 };
11315113141131611315 mitschemeX11 = mitscheme.override {
1131711317- texLive = texlive.combine { inherit (texlive) scheme-small; };
1131811318- texinfo = texinfo5;
1131911319- enableX11 = true;
1131611316+ texLive = texlive.combine { inherit (texlive) scheme-small; };
1131711317+ texinfo = texinfo5;
1131811318+ enableX11 = true;
1132011319 };
11321113201132211321 miranda = callPackage ../development/compilers/miranda {};
···1297912978 # };
1298012979 #
1298112980 distccWrapper = makeOverridable ({ extraConfig ? "" }:
1298212982- wrapCC (distcc.links extraConfig)) {};
1298112981+ wrapCC (distcc.links extraConfig)) {};
1298312982 distccStdenv = lowPrio (overrideCC stdenv buildPackages.distccWrapper);
12984129831298512984 distccMasquerade = if stdenv.isDarwin
···1614216141 libiconv =
1614316142 if lib.elem stdenv.hostPlatform.libc ["glibc" "musl" "wasilibc"]
1614416143 then glibcIconv (if stdenv.hostPlatform != stdenv.buildPlatform
1614516145- then libcCross
1614616146- else stdenv.cc.libc)
1614416144+ then libcCross
1614516145+ else stdenv.cc.libc)
1614716146 else if stdenv.hostPlatform.isDarwin
1614816147 then darwin.libiconv
1614916148 else libiconvReal;
···1700617005 };
17007170061700817007 nss = lowPrio (callPackage ../development/libraries/nss { });
1700917009- nss_3_44 = lowPrio (callPackage ../development/libraries/nss/3.44.nix { });
1701017008 nssTools = nss.tools;
17011170091701217010 # required for stable thunderbird and firefox-esr-78
···17599175971760017598 s2geometry = callPackage ../development/libraries/s2geometry { };
17601175991760217602- /* This package references ghc844, which we no longer have. Unfortunately, I
1760317603- have been unable to mark it as "broken" in a way that the ofBorg bot
1760417604- recognizes. Since I don't want to merge code into master that generates
1760517605- evaluation errors, I have no other idea but to comment it out entirely.
1760017600+ /* This package references ghc844, which we no longer have. Unfortunately, I
1760117601+ have been unable to mark it as "broken" in a way that the ofBorg bot
1760217602+ recognizes. Since I don't want to merge code into master that generates
1760317603+ evaluation errors, I have no other idea but to comment it out entirely.
17606176041760717605 sad = callPackage ../applications/science/logic/sad { };
1760817608- */
1760617606+ */
17609176071761017608 safefile = callPackage ../development/libraries/safefile {};
1761117609···2033120329 ];
2033220330 };
20333203312033420334- /* Linux kernel modules are inherently tied to a specific kernel. So
2033520335- rather than provide specific instances of those packages for a
2033620336- specific kernel, we have a function that builds those packages
2033720337- for a specific kernel. This function can then be called for
2033820338- whatever kernel you're using. */
2033220332+ /* Linux kernel modules are inherently tied to a specific kernel. So
2033320333+ rather than provide specific instances of those packages for a
2033420334+ specific kernel, we have a function that builds those packages
2033520335+ for a specific kernel. This function can then be called for
2033620336+ whatever kernel you're using. */
20339203372034020338 linuxPackagesFor = kernel_: lib.makeExtensible (self: with self; {
2034120339 callPackage = newScope self;
···20475204732047620474 mxu11x0 = callPackage ../os-specific/linux/mxu11x0 { };
20477204752047820478- /* compiles but has to be integrated into the kernel somehow
2047920479- Let's have it uncommented and finish it..
2048020480- */
2047620476+ # compiles but has to be integrated into the kernel somehow
2047720477+ # Let's have it uncommented and finish it..
2048120478 ndiswrapper = callPackage ../os-specific/linux/ndiswrapper { };
20482204792048320480 netatop = callPackage ../os-specific/linux/netatop { };
···2053620533 zenpower = callPackage ../os-specific/linux/zenpower { };
20537205342053820535 inherit (callPackages ../os-specific/linux/zfs {
2053920539- configFile = "kernel";
2054020540- inherit kernel;
2054120541- }) zfsStable zfsUnstable;
2054220542-2054320543- zfs = zfsStable;
2053620536+ configFile = "kernel";
2053720537+ inherit kernel;
2053820538+ }) zfsStable zfsUnstable;
2053920539+ zfs = zfsStable;
20544205402054520545- can-isotp = callPackage ../os-specific/linux/can-isotp { };
2054120541+ can-isotp = callPackage ../os-specific/linux/can-isotp { };
2054620542 });
20547205432054820544 # The current default kernel / kernel modules.
···2078720783 inherit (darwin.apple_sdk.frameworks) AppKit Security;
2078820784 };
20789207852079020790- nettools = if stdenv.isLinux then callPackage ../os-specific/linux/net-tools { }
2079120791- else unixtools.nettools;
2078620786+ nettools = if stdenv.isLinux
2078720787+ then callPackage ../os-specific/linux/net-tools { }
2078820788+ else unixtools.nettools;
20792207892079320790 nettools_mptcp = callPackage ../os-specific/linux/net-tools/mptcp.nix { };
2079420791···20987209842098820985 prayer = callPackage ../servers/prayer { };
20989209862099020990- procps = if stdenv.isLinux then callPackage ../os-specific/linux/procps-ng { }
2099120991- else unixtools.procps;
2098720987+ procps = if stdenv.isLinux
2098820988+ then callPackage ../os-specific/linux/procps-ng { }
2098920989+ else unixtools.procps;
20992209902099320991 procdump = callPackage ../os-specific/linux/procdump { };
2099420992···2213822136 ucs-fonts = callPackage ../data/fonts/ucs-fonts
2213922137 { inherit (buildPackages.xorg) fonttosfnt mkfontscale; };
22140221382214122141-2214222139 ultimate-oldschool-pc-font-pack = callPackage ../data/fonts/ultimate-oldschool-pc-font-pack { };
22143221402214422141 ultralist = callPackage ../applications/misc/ultralist { };
···2214622143 undefined-medium = callPackage ../data/fonts/undefined-medium { };
22147221442214822145 uni-vga = callPackage ../data/fonts/uni-vga
2214922149- { inherit (buildPackages.xorg) fonttosfnt mkfontscale; };
2214622146+ { inherit (buildPackages.xorg) fonttosfnt mkfontscale; };
22150221472215122148 unicode-character-database = callPackage ../data/misc/unicode-character-database { };
2215222149···2215522152 unihan-database = callPackage ../data/misc/unihan-database { };
22156221532215722154 unifont = callPackage ../data/fonts/unifont
2215822158- { inherit (buildPackages.xorg) fonttosfnt mkfontscale; };
2215522155+ { inherit (buildPackages.xorg) fonttosfnt mkfontscale; };
22159221562216022157 unifont_upper = callPackage ../data/fonts/unifont_upper { };
2216122158···2318623183 flwrap = callPackage ../applications/radio/flwrap { };
23187231842318823185 fluidsynth = callPackage ../applications/audio/fluidsynth {
2318923189- inherit (darwin.apple_sdk.frameworks) AudioUnit CoreAudio CoreMIDI CoreServices;
2318623186+ inherit (darwin.apple_sdk.frameworks) AudioUnit CoreAudio CoreMIDI CoreServices;
2319023187 };
2319123188 fluidsynth_1 = fluidsynth.override { version = "1"; };
2319223189···25185251822518625183 plank = callPackage ../applications/misc/plank { };
25187251842518825188- playonlinux = callPackage ../applications/misc/playonlinux {
2518925189- stdenv = stdenv_32bit;
2519025190- };
2518525185+ playonlinux = callPackage ../applications/misc/playonlinux
2518625186+ { stdenv = stdenv_32bit; };
25191251872519225188 pleroma-bot = python3Packages.callPackage ../development/python-modules/pleroma-bot { };
2519325189···2656726563 gtk3Support = true;
2656826564 };
26569265652657026570- thunderbird-68 = callPackage ../applications/networking/mailreaders/thunderbird/68.nix {
2657126571- inherit (rustPackages) cargo rustc;
2657226572- libpng = libpng_apng;
2657326573- nss = nss_3_44;
2657426574- gtk3Support = true;
2657526575- };
2657626576-2657726566 thunderbolt = callPackage ../os-specific/linux/thunderbolt {};
26578265672657926568 thunderbird-bin = thunderbird-bin-78;
2658026569 thunderbird-bin-78 = callPackage ../applications/networking/mailreaders/thunderbird-bin { };
2658126581-2658226582- thunderbird-bin-68 = callPackage ../applications/networking/mailreaders/thunderbird-bin/68.nix { };
26583265702658426571 ticpp = callPackage ../development/libraries/ticpp { };
2658526572···27105270922710627093 weston = callPackage ../applications/window-managers/weston { pipewire = pipewire_0_2; };
27107270942710827108- wio = callPackage ../applications/window-managers/wio {
2710927109- wlroots = wlroots_0_12;
2711027110- };
2709527095+ wio = callPackage ../applications/window-managers/wio { };
27111270962711227097 whitebox-tools = callPackage ../applications/gis/whitebox-tools {
2711327098 inherit (darwin.apple_sdk.frameworks) Security;
···2759927584 zgrviewer = callPackage ../applications/graphics/zgrviewer { };
27600275852760127586 zgv = callPackage ../applications/graphics/zgv {
2760227602- # Enable the below line for terminal display. Note
2760327603- # that it requires sixel graphics compatible terminals like mlterm
2760427604- # or xterm -ti 340
2760527605- SDL = SDL_sixel;
2758727587+ # Enable the below line for terminal display. Note
2758827588+ # that it requires sixel graphics compatible terminals like mlterm
2758927589+ # or xterm -ti 340
2759027590+ SDL = SDL_sixel;
2760627591 };
27607275922760827593 zim = callPackage ../applications/office/zim { };
···2953329518 elan = callPackage ../applications/science/logic/elan {};
2953429519 mathlibtools = with python3Packages; toPythonApplication mathlibtools;
29535295202953629536- leo2 = callPackage ../applications/science/logic/leo2 {
2953729537- ocaml = ocaml-ng.ocamlPackages_4_01_0.ocaml;};
2952129521+ leo2 = callPackage ../applications/science/logic/leo2
2952229522+ { ocaml = ocaml-ng.ocamlPackages_4_01_0.ocaml; };
29538295232953929524 leo3-bin = callPackage ../applications/science/logic/leo3/binary.nix {};
2954029525···30330303153033130316 nixops-dns = callPackage ../tools/package-management/nixops/nixops-dns.nix { };
30332303173033330333- /* Evaluate a NixOS configuration using this evaluation of Nixpkgs.
3031830318+ /*
3031930319+ Evaluate a NixOS configuration using this evaluation of Nixpkgs.
30334303203033530335- With this function you can write, for example, a package that
3033630336- depends on a custom virtual machine image.
3032130321+ With this function you can write, for example, a package that
3032230322+ depends on a custom virtual machine image.
30337303233033830338- Parameter: A module, path or list of those that represent the
3032430324+ Parameter: A module, path or list of those that represent the
3033930325 configuration of the NixOS system to be constructed.
30340303263034130341- Result: An attribute set containing packages produced by this
3034230342- evaluation of NixOS, such as toplevel, kernel and
3034330343- initialRamdisk.
3034430344- The result can be extended in the modules by defining
3034530345- extra attributes in system.build.
3034630346- Alternatively, you may use the result's config and
3034730347- options attributes to query any option.
3032730327+ Result: An attribute set containing packages produced by this
3032830328+ evaluation of NixOS, such as toplevel, kernel and
3032930329+ initialRamdisk.
3033030330+ The result can be extended in the modules by defining
3033130331+ extra attributes in system.build.
3033230332+ Alternatively, you may use the result's config and
3033330333+ options attributes to query any option.
30348303343034930349- Example:
3033530335+ Example:
30350303363035130351- let
3035230352- myOS = pkgs.nixos ({ lib, pkgs, config, ... }: {
3033730337+ let
3033830338+ myOS = pkgs.nixos ({ lib, pkgs, config, ... }: {
30353303393035430354- config.services.nginx = {
3035530355- enable = true;
3035630356- # ...
3035730357- };
3034030340+ config.services.nginx = {
3034130341+ enable = true;
3034230342+ # ...
3034330343+ };
30358303443035930359- # Use config.system.build to exports relevant parts of a
3036030360- # configuration. The runner attribute should not be
3036130361- # considered a fully general replacement for systemd
3036230362- # functionality.
3036330363- config.system.build.run-nginx = config.systemd.services.nginx.runner;
3036430364- });
3036530365- in
3036630366- myOS.run-nginx
3034530345+ # Use config.system.build to exports relevant parts of a
3034630346+ # configuration. The runner attribute should not be
3034730347+ # considered a fully general replacement for systemd
3034830348+ # functionality.
3034930349+ config.system.build.run-nginx = config.systemd.services.nginx.runner;
3035030350+ });
3035130351+ in
3035230352+ myOS.run-nginx
30367303533036830368- Unlike in plain NixOS, the nixpkgs.config and
3036930369- nixpkgs.system options will be ignored by default. Instead,
3037030370- nixpkgs.pkgs will have the default value of pkgs as it was
3037130371- constructed right after invoking the nixpkgs function (e.g. the
3037230372- value of import <nixpkgs> { overlays = [./my-overlay.nix]; }
3037330373- but not the value of (import <nixpkgs> {} // { extra = ...; }).
3035430354+ Unlike in plain NixOS, the nixpkgs.config and
3035530355+ nixpkgs.system options will be ignored by default. Instead,
3035630356+ nixpkgs.pkgs will have the default value of pkgs as it was
3035730357+ constructed right after invoking the nixpkgs function (e.g. the
3035830358+ value of import <nixpkgs> { overlays = [./my-overlay.nix]; }
3035930359+ but not the value of (import <nixpkgs> {} // { extra = ...; }).
30374303603037530375- If you do want to use the config.nixpkgs options, you are
3037630376- probably better off by calling nixos/lib/eval-config.nix
3037730377- directly, even though it is possible to set config.nixpkgs.pkgs.
3036130361+ If you do want to use the config.nixpkgs options, you are
3036230362+ probably better off by calling nixos/lib/eval-config.nix
3036330363+ directly, even though it is possible to set config.nixpkgs.pkgs.
30378303643037930379- For more information about writing NixOS modules, see
3038030380- https://nixos.org/nixos/manual/index.html#sec-writing-modules
3036530365+ For more information about writing NixOS modules, see
3036630366+ https://nixos.org/nixos/manual/index.html#sec-writing-modules
30381303673038230382- Note that you will need to have called Nixpkgs with the system
3038330383- parameter set to the right value for your deployment target.
3036830368+ Note that you will need to have called Nixpkgs with the system
3036930369+ parameter set to the right value for your deployment target.
3038430370 */
3038530371 nixos =
3038630372 configuration:
···3044830434 test:
3044930435 let
3045030436 loadedTest = if builtins.typeOf test == "path"
3045130451- then import test
3045230452- else test;
3043730437+ then import test
3043830438+ else test;
3045330439 calledTest = if pkgs.lib.isFunction loadedTest
3045430454- then callPackage loadedTest {}
3045530455- else loadedTest;
3044030440+ then callPackage loadedTest {}
3044130441+ else loadedTest;
3045630442 in
3045730443 nixosTesting.makeTest calledTest;
3045830444···3111031096 };
31111310973111231098 xsw = callPackage ../applications/misc/xsw {
3111331113- # Enable the next line to use this in terminal.
3111431114- # Note that it requires sixel capable terminals such as mlterm
3111531115- # or xterm -ti 340
3111631116- SDL = SDL_sixel;
3109931099+ # Enable the next line to use this in terminal.
3110031100+ # Note that it requires sixel capable terminals such as mlterm
3110131101+ # or xterm -ti 340
3110231102+ SDL = SDL_sixel;
3111731103 };
31118311043111931105 xteddy = callPackage ../applications/misc/xteddy { };