···457458 # `fetchurl' downloads a file from the network.
459 fetchurl = if stdenv.buildPlatform != stdenv.hostPlatform
460- then buildPackages.fetchurl # No need to do special overrides twice,
461- else makeOverridable (import ../build-support/fetchurl) {
462- inherit lib stdenvNoCC buildPackages;
463- inherit cacert;
464- curl = buildPackages.curlMinimal.override (old: rec {
465- # break dependency cycles
466- fetchurl = stdenv.fetchurlBoot;
467- zlib = buildPackages.zlib.override { fetchurl = stdenv.fetchurlBoot; };
468- pkg-config = buildPackages.pkg-config.override (old: {
469- pkg-config = old.pkg-config.override {
470- fetchurl = stdenv.fetchurlBoot;
471- };
472- });
473- perl = buildPackages.perl.override { fetchurl = stdenv.fetchurlBoot; };
474- openssl = buildPackages.openssl.override {
475 fetchurl = stdenv.fetchurlBoot;
476- buildPackages = {
477- coreutils = buildPackages.coreutils.override {
0478 fetchurl = stdenv.fetchurlBoot;
00000000000000479 inherit perl;
480- xz = buildPackages.xz.override { fetchurl = stdenv.fetchurlBoot; };
481- gmp = null;
482- aclSupport = false;
483- attrSupport = false;
484 };
485 inherit perl;
486 };
487- inherit perl;
488- };
489- libssh2 = buildPackages.libssh2.override {
490- fetchurl = stdenv.fetchurlBoot;
491- inherit zlib openssl;
492- };
493- # On darwin, libkrb5 needs bootstrap_cmds which would require
494- # converting many packages to fetchurl_boot to avoid evaluation cycles.
495- # So turn gssSupport off there, and on Windows.
496- # On other platforms, keep the previous value.
497- gssSupport =
498- if stdenv.isDarwin || stdenv.hostPlatform.isWindows
499- then false
500- else old.gssSupport or true; # `? true` is the default
501- libkrb5 = buildPackages.libkrb5.override {
502- fetchurl = stdenv.fetchurlBoot;
503- inherit pkg-config perl openssl;
504- keyutils = buildPackages.keyutils.override { fetchurl = stdenv.fetchurlBoot; };
505- };
506- nghttp2 = buildPackages.nghttp2.override {
507- fetchurl = stdenv.fetchurlBoot;
508- inherit zlib pkg-config openssl;
509- c-ares = buildPackages.c-ares.override { fetchurl = stdenv.fetchurlBoot; };
510- libev = buildPackages.libev.override { fetchurl = stdenv.fetchurlBoot; };
511- };
512- });
513- };
514515 fetchRepoProject = callPackage ../build-support/fetchrepoproject { };
516···1470 grc = python3Packages.callPackage ../tools/misc/grc { };
14711472 green-pdfviewer = callPackage ../applications/misc/green-pdfviewer {
1473- SDL = SDL_sixel;
1474 };
14751476 gremlin-console = callPackage ../applications/misc/gremlin-console {
···4233 wallutils = callPackage ../tools/graphics/wallutils { };
42344235 wrangler = callPackage ../development/tools/wrangler {
4236- inherit (darwin.apple_sdk.frameworks) CoreFoundation CoreServices Security;
4237 };
42384239 wsl-open = callPackage ../tools/misc/wsl-open { };
···51455146 gnu-pw-mgr = callPackage ../tools/security/gnu-pw-mgr { };
51475148- gnused = if !stdenv.hostPlatform.isWindows then
5149- callPackage ../tools/text/gnused { } # broken on Windows
5150- else
5151- gnused_422;
5152 # This is an easy work-around for [:space:] problems.
5153 gnused_422 = callPackage ../tools/text/gnused/422.nix { };
5154···1045110452 crossLibcStdenv = overrideCC stdenv
10453 (if stdenv.hostPlatform.useLLVM or false
10454- then buildPackages.llvmPackages_8.lldClangNoLibc
10455- else buildPackages.gccCrossStageStatic);
1045610457 # The GCC used to build libc for the target platform. Normal gccs will be
10458 # built with, and use, that cross-compiled libc.
···11274 mint = callPackage ../development/compilers/mint { };
1127511276 mitscheme = callPackage ../development/compilers/mit-scheme {
11277- texLive = texlive.combine { inherit (texlive) scheme-small; };
11278- texinfo = texinfo5;
11279- xlibsWrapper = null;
11280 };
1128111282 mitschemeX11 = mitscheme.override {
11283- texLive = texlive.combine { inherit (texlive) scheme-small; };
11284- texinfo = texinfo5;
11285- enableX11 = true;
11286 };
1128711288 miranda = callPackage ../development/compilers/miranda {};
···12916 # };
12917 #
12918 distccWrapper = makeOverridable ({ extraConfig ? "" }:
12919- wrapCC (distcc.links extraConfig)) {};
12920 distccStdenv = lowPrio (overrideCC stdenv buildPackages.distccWrapper);
1292112922 distccMasquerade = if stdenv.isDarwin
···16062 libiconv =
16063 if lib.elem stdenv.hostPlatform.libc ["glibc" "musl" "wasilibc"]
16064 then glibcIconv (if stdenv.hostPlatform != stdenv.buildPlatform
16065- then libcCross
16066- else stdenv.cc.libc)
16067 else if stdenv.hostPlatform.isDarwin
16068 then darwin.libiconv
16069 else libiconvReal;
···1752017521 s2geometry = callPackage ../development/libraries/s2geometry { };
1752217523- /* This package references ghc844, which we no longer have. Unfortunately, I
17524- have been unable to mark it as "broken" in a way that the ofBorg bot
17525- recognizes. Since I don't want to merge code into master that generates
17526- evaluation errors, I have no other idea but to comment it out entirely.
1752717528 sad = callPackage ../applications/science/logic/sad { };
17529- */
1753017531 safefile = callPackage ../development/libraries/safefile {};
17532···20253 ];
20254 };
2025520256- /* Linux kernel modules are inherently tied to a specific kernel. So
20257- rather than provide specific instances of those packages for a
20258- specific kernel, we have a function that builds those packages
20259- for a specific kernel. This function can then be called for
20260- whatever kernel you're using. */
2026120262 linuxPackagesFor = kernel_: lib.makeExtensible (self: with self; {
20263 callPackage = newScope self;
···2039720398 mxu11x0 = callPackage ../os-specific/linux/mxu11x0 { };
2039920400- /* compiles but has to be integrated into the kernel somehow
20401- Let's have it uncommented and finish it..
20402- */
20403 ndiswrapper = callPackage ../os-specific/linux/ndiswrapper { };
2040420405 netatop = callPackage ../os-specific/linux/netatop { };
···20458 zenpower = callPackage ../os-specific/linux/zenpower { };
2045920460 inherit (callPackages ../os-specific/linux/zfs {
20461- configFile = "kernel";
20462- inherit kernel;
20463- }) zfsStable zfsUnstable;
02046420465- zfs = zfsStable;
20466-20467- can-isotp = callPackage ../os-specific/linux/can-isotp { };
20468 });
2046920470 # The current default kernel / kernel modules.
···20709 inherit (darwin.apple_sdk.frameworks) AppKit Security;
20710 };
2071120712- nettools = if stdenv.isLinux then callPackage ../os-specific/linux/net-tools { }
20713- else unixtools.nettools;
02071420715 nettools_mptcp = callPackage ../os-specific/linux/net-tools/mptcp.nix { };
20716···2090920910 prayer = callPackage ../servers/prayer { };
2091120912- procps = if stdenv.isLinux then callPackage ../os-specific/linux/procps-ng { }
20913- else unixtools.procps;
02091420915 procdump = callPackage ../os-specific/linux/procdump { };
20916···22060 ucs-fonts = callPackage ../data/fonts/ucs-fonts
22061 { inherit (buildPackages.xorg) fonttosfnt mkfontscale; };
2206222063-22064 ultimate-oldschool-pc-font-pack = callPackage ../data/fonts/ultimate-oldschool-pc-font-pack { };
2206522066 ultralist = callPackage ../applications/misc/ultralist { };
···22068 undefined-medium = callPackage ../data/fonts/undefined-medium { };
2206922070 uni-vga = callPackage ../data/fonts/uni-vga
22071- { inherit (buildPackages.xorg) fonttosfnt mkfontscale; };
2207222073 unicode-character-database = callPackage ../data/misc/unicode-character-database { };
22074···22077 unihan-database = callPackage ../data/misc/unihan-database { };
2207822079 unifont = callPackage ../data/fonts/unifont
22080- { inherit (buildPackages.xorg) fonttosfnt mkfontscale; };
2208122082 unifont_upper = callPackage ../data/fonts/unifont_upper { };
22083···23108 flwrap = callPackage ../applications/radio/flwrap { };
2310923110 fluidsynth = callPackage ../applications/audio/fluidsynth {
23111- inherit (darwin.apple_sdk.frameworks) AudioUnit CoreAudio CoreMIDI CoreServices;
23112 };
23113 fluidsynth_1 = fluidsynth.override { version = "1"; };
23114···2510525106 plank = callPackage ../applications/misc/plank { };
2510725108- playonlinux = callPackage ../applications/misc/playonlinux {
25109- stdenv = stdenv_32bit;
25110- };
2511125112 pleroma-bot = python3Packages.callPackage ../development/python-modules/pleroma-bot { };
25113···27510 zgrviewer = callPackage ../applications/graphics/zgrviewer { };
2751127512 zgv = callPackage ../applications/graphics/zgv {
27513- # Enable the below line for terminal display. Note
27514- # that it requires sixel graphics compatible terminals like mlterm
27515- # or xterm -ti 340
27516- SDL = SDL_sixel;
27517 };
2751827519 zim = callPackage ../applications/office/zim { };
···29444 elan = callPackage ../applications/science/logic/elan {};
29445 mathlibtools = with python3Packages; toPythonApplication mathlibtools;
2944629447- leo2 = callPackage ../applications/science/logic/leo2 {
29448- ocaml = ocaml-ng.ocamlPackages_4_01_0.ocaml;};
2944929450 leo3-bin = callPackage ../applications/science/logic/leo3/binary.nix {};
29451···3024130242 nixops-dns = callPackage ../tools/package-management/nixops/nixops-dns.nix { };
3024330244- /* Evaluate a NixOS configuration using this evaluation of Nixpkgs.
03024530246- With this function you can write, for example, a package that
30247- depends on a custom virtual machine image.
3024830249- Parameter: A module, path or list of those that represent the
30250 configuration of the NixOS system to be constructed.
3025130252- Result: An attribute set containing packages produced by this
30253- evaluation of NixOS, such as toplevel, kernel and
30254- initialRamdisk.
30255- The result can be extended in the modules by defining
30256- extra attributes in system.build.
30257- Alternatively, you may use the result's config and
30258- options attributes to query any option.
3025930260- Example:
3026130262- let
30263- myOS = pkgs.nixos ({ lib, pkgs, config, ... }: {
3026430265- config.services.nginx = {
30266- enable = true;
30267- # ...
30268- };
3026930270- # Use config.system.build to exports relevant parts of a
30271- # configuration. The runner attribute should not be
30272- # considered a fully general replacement for systemd
30273- # functionality.
30274- config.system.build.run-nginx = config.systemd.services.nginx.runner;
30275- });
30276- in
30277- myOS.run-nginx
3027830279- Unlike in plain NixOS, the nixpkgs.config and
30280- nixpkgs.system options will be ignored by default. Instead,
30281- nixpkgs.pkgs will have the default value of pkgs as it was
30282- constructed right after invoking the nixpkgs function (e.g. the
30283- value of import <nixpkgs> { overlays = [./my-overlay.nix]; }
30284- but not the value of (import <nixpkgs> {} // { extra = ...; }).
3028530286- If you do want to use the config.nixpkgs options, you are
30287- probably better off by calling nixos/lib/eval-config.nix
30288- directly, even though it is possible to set config.nixpkgs.pkgs.
3028930290- For more information about writing NixOS modules, see
30291- https://nixos.org/nixos/manual/index.html#sec-writing-modules
3029230293- Note that you will need to have called Nixpkgs with the system
30294- parameter set to the right value for your deployment target.
30295 */
30296 nixos =
30297 configuration:
···30359 test:
30360 let
30361 loadedTest = if builtins.typeOf test == "path"
30362- then import test
30363- else test;
30364 calledTest = if pkgs.lib.isFunction loadedTest
30365- then callPackage loadedTest {}
30366- else loadedTest;
30367 in
30368 nixosTesting.makeTest calledTest;
30369···31023 };
3102431025 xsw = callPackage ../applications/misc/xsw {
31026- # Enable the next line to use this in terminal.
31027- # Note that it requires sixel capable terminals such as mlterm
31028- # or xterm -ti 340
31029- SDL = SDL_sixel;
31030 };
3103131032 xteddy = callPackage ../applications/misc/xteddy { };
···457458 # `fetchurl' downloads a file from the network.
459 fetchurl = if stdenv.buildPlatform != stdenv.hostPlatform
460+ then buildPackages.fetchurl # No need to do special overrides twice,
461+ else makeOverridable (import ../build-support/fetchurl) {
462+ inherit lib stdenvNoCC buildPackages;
463+ inherit cacert;
464+ curl = buildPackages.curlMinimal.override (old: rec {
465+ # break dependency cycles
000000000466 fetchurl = stdenv.fetchurlBoot;
467+ zlib = buildPackages.zlib.override { fetchurl = stdenv.fetchurlBoot; };
468+ pkg-config = buildPackages.pkg-config.override (old: {
469+ pkg-config = old.pkg-config.override {
470 fetchurl = stdenv.fetchurlBoot;
471+ };
472+ });
473+ perl = buildPackages.perl.override { fetchurl = stdenv.fetchurlBoot; };
474+ openssl = buildPackages.openssl.override {
475+ fetchurl = stdenv.fetchurlBoot;
476+ buildPackages = {
477+ coreutils = buildPackages.coreutils.override {
478+ fetchurl = stdenv.fetchurlBoot;
479+ inherit perl;
480+ xz = buildPackages.xz.override { fetchurl = stdenv.fetchurlBoot; };
481+ gmp = null;
482+ aclSupport = false;
483+ attrSupport = false;
484+ };
485 inherit perl;
0000486 };
487 inherit perl;
488 };
489+ libssh2 = buildPackages.libssh2.override {
490+ fetchurl = stdenv.fetchurlBoot;
491+ inherit zlib openssl;
492+ };
493+ # On darwin, libkrb5 needs bootstrap_cmds which would require
494+ # converting many packages to fetchurl_boot to avoid evaluation cycles.
495+ # So turn gssSupport off there, and on Windows.
496+ # On other platforms, keep the previous value.
497+ gssSupport =
498+ if stdenv.isDarwin || stdenv.hostPlatform.isWindows
499+ then false
500+ else old.gssSupport or true; # `? true` is the default
501+ libkrb5 = buildPackages.libkrb5.override {
502+ fetchurl = stdenv.fetchurlBoot;
503+ inherit pkg-config perl openssl;
504+ keyutils = buildPackages.keyutils.override { fetchurl = stdenv.fetchurlBoot; };
505+ };
506+ nghttp2 = buildPackages.nghttp2.override {
507+ fetchurl = stdenv.fetchurlBoot;
508+ inherit zlib pkg-config openssl;
509+ c-ares = buildPackages.c-ares.override { fetchurl = stdenv.fetchurlBoot; };
510+ libev = buildPackages.libev.override { fetchurl = stdenv.fetchurlBoot; };
511+ };
512+ });
513+ };
00514515 fetchRepoProject = callPackage ../build-support/fetchrepoproject { };
516···1470 grc = python3Packages.callPackage ../tools/misc/grc { };
14711472 green-pdfviewer = callPackage ../applications/misc/green-pdfviewer {
1473+ SDL = SDL_sixel;
1474 };
14751476 gremlin-console = callPackage ../applications/misc/gremlin-console {
···4233 wallutils = callPackage ../tools/graphics/wallutils { };
42344235 wrangler = callPackage ../development/tools/wrangler {
4236+ inherit (darwin.apple_sdk.frameworks) CoreFoundation CoreServices Security;
4237 };
42384239 wsl-open = callPackage ../tools/misc/wsl-open { };
···51455146 gnu-pw-mgr = callPackage ../tools/security/gnu-pw-mgr { };
51475148+ gnused = if !stdenv.hostPlatform.isWindows
5149+ then callPackage ../tools/text/gnused { } # broken on Windows
5150+ else gnused_422;
05151 # This is an easy work-around for [:space:] problems.
5152 gnused_422 = callPackage ../tools/text/gnused/422.nix { };
5153···1045010451 crossLibcStdenv = overrideCC stdenv
10452 (if stdenv.hostPlatform.useLLVM or false
10453+ then buildPackages.llvmPackages_8.lldClangNoLibc
10454+ else buildPackages.gccCrossStageStatic);
1045510456 # The GCC used to build libc for the target platform. Normal gccs will be
10457 # built with, and use, that cross-compiled libc.
···11273 mint = callPackage ../development/compilers/mint { };
1127411275 mitscheme = callPackage ../development/compilers/mit-scheme {
11276+ texLive = texlive.combine { inherit (texlive) scheme-small; };
11277+ texinfo = texinfo5;
11278+ xlibsWrapper = null;
11279 };
1128011281 mitschemeX11 = mitscheme.override {
11282+ texLive = texlive.combine { inherit (texlive) scheme-small; };
11283+ texinfo = texinfo5;
11284+ enableX11 = true;
11285 };
1128611287 miranda = callPackage ../development/compilers/miranda {};
···12915 # };
12916 #
12917 distccWrapper = makeOverridable ({ extraConfig ? "" }:
12918+ wrapCC (distcc.links extraConfig)) {};
12919 distccStdenv = lowPrio (overrideCC stdenv buildPackages.distccWrapper);
1292012921 distccMasquerade = if stdenv.isDarwin
···16061 libiconv =
16062 if lib.elem stdenv.hostPlatform.libc ["glibc" "musl" "wasilibc"]
16063 then glibcIconv (if stdenv.hostPlatform != stdenv.buildPlatform
16064+ then libcCross
16065+ else stdenv.cc.libc)
16066 else if stdenv.hostPlatform.isDarwin
16067 then darwin.libiconv
16068 else libiconvReal;
···1751917520 s2geometry = callPackage ../development/libraries/s2geometry { };
1752117522+ /* This package references ghc844, which we no longer have. Unfortunately, I
17523+ have been unable to mark it as "broken" in a way that the ofBorg bot
17524+ recognizes. Since I don't want to merge code into master that generates
17525+ evaluation errors, I have no other idea but to comment it out entirely.
1752617527 sad = callPackage ../applications/science/logic/sad { };
17528+ */
1752917530 safefile = callPackage ../development/libraries/safefile {};
17531···20252 ];
20253 };
2025420255+ /* Linux kernel modules are inherently tied to a specific kernel. So
20256+ rather than provide specific instances of those packages for a
20257+ specific kernel, we have a function that builds those packages
20258+ for a specific kernel. This function can then be called for
20259+ whatever kernel you're using. */
2026020261 linuxPackagesFor = kernel_: lib.makeExtensible (self: with self; {
20262 callPackage = newScope self;
···2039620397 mxu11x0 = callPackage ../os-specific/linux/mxu11x0 { };
2039820399+ # compiles but has to be integrated into the kernel somehow
20400+ # Let's have it uncommented and finish it..
020401 ndiswrapper = callPackage ../os-specific/linux/ndiswrapper { };
2040220403 netatop = callPackage ../os-specific/linux/netatop { };
···20456 zenpower = callPackage ../os-specific/linux/zenpower { };
2045720458 inherit (callPackages ../os-specific/linux/zfs {
20459+ configFile = "kernel";
20460+ inherit kernel;
20461+ }) zfsStable zfsUnstable;
20462+ zfs = zfsStable;
2046320464+ can-isotp = callPackage ../os-specific/linux/can-isotp { };
0020465 });
2046620467 # The current default kernel / kernel modules.
···20706 inherit (darwin.apple_sdk.frameworks) AppKit Security;
20707 };
2070820709+ nettools = if stdenv.isLinux
20710+ then callPackage ../os-specific/linux/net-tools { }
20711+ else unixtools.nettools;
2071220713 nettools_mptcp = callPackage ../os-specific/linux/net-tools/mptcp.nix { };
20714···2090720908 prayer = callPackage ../servers/prayer { };
2090920910+ procps = if stdenv.isLinux
20911+ then callPackage ../os-specific/linux/procps-ng { }
20912+ else unixtools.procps;
2091320914 procdump = callPackage ../os-specific/linux/procdump { };
20915···22059 ucs-fonts = callPackage ../data/fonts/ucs-fonts
22060 { inherit (buildPackages.xorg) fonttosfnt mkfontscale; };
22061022062 ultimate-oldschool-pc-font-pack = callPackage ../data/fonts/ultimate-oldschool-pc-font-pack { };
2206322064 ultralist = callPackage ../applications/misc/ultralist { };
···22066 undefined-medium = callPackage ../data/fonts/undefined-medium { };
2206722068 uni-vga = callPackage ../data/fonts/uni-vga
22069+ { inherit (buildPackages.xorg) fonttosfnt mkfontscale; };
2207022071 unicode-character-database = callPackage ../data/misc/unicode-character-database { };
22072···22075 unihan-database = callPackage ../data/misc/unihan-database { };
2207622077 unifont = callPackage ../data/fonts/unifont
22078+ { inherit (buildPackages.xorg) fonttosfnt mkfontscale; };
2207922080 unifont_upper = callPackage ../data/fonts/unifont_upper { };
22081···23106 flwrap = callPackage ../applications/radio/flwrap { };
2310723108 fluidsynth = callPackage ../applications/audio/fluidsynth {
23109+ inherit (darwin.apple_sdk.frameworks) AudioUnit CoreAudio CoreMIDI CoreServices;
23110 };
23111 fluidsynth_1 = fluidsynth.override { version = "1"; };
23112···2510325104 plank = callPackage ../applications/misc/plank { };
2510525106+ playonlinux = callPackage ../applications/misc/playonlinux
25107+ { stdenv = stdenv_32bit; };
02510825109 pleroma-bot = python3Packages.callPackage ../development/python-modules/pleroma-bot { };
25110···27507 zgrviewer = callPackage ../applications/graphics/zgrviewer { };
2750827509 zgv = callPackage ../applications/graphics/zgv {
27510+ # Enable the below line for terminal display. Note
27511+ # that it requires sixel graphics compatible terminals like mlterm
27512+ # or xterm -ti 340
27513+ SDL = SDL_sixel;
27514 };
2751527516 zim = callPackage ../applications/office/zim { };
···29441 elan = callPackage ../applications/science/logic/elan {};
29442 mathlibtools = with python3Packages; toPythonApplication mathlibtools;
2944329444+ leo2 = callPackage ../applications/science/logic/leo2
29445+ { ocaml = ocaml-ng.ocamlPackages_4_01_0.ocaml; };
2944629447 leo3-bin = callPackage ../applications/science/logic/leo3/binary.nix {};
29448···3023830239 nixops-dns = callPackage ../tools/package-management/nixops/nixops-dns.nix { };
3024030241+ /*
30242+ Evaluate a NixOS configuration using this evaluation of Nixpkgs.
3024330244+ With this function you can write, for example, a package that
30245+ depends on a custom virtual machine image.
3024630247+ Parameter: A module, path or list of those that represent the
30248 configuration of the NixOS system to be constructed.
3024930250+ Result: An attribute set containing packages produced by this
30251+ evaluation of NixOS, such as toplevel, kernel and
30252+ initialRamdisk.
30253+ The result can be extended in the modules by defining
30254+ extra attributes in system.build.
30255+ Alternatively, you may use the result's config and
30256+ options attributes to query any option.
3025730258+ Example:
3025930260+ let
30261+ myOS = pkgs.nixos ({ lib, pkgs, config, ... }: {
3026230263+ config.services.nginx = {
30264+ enable = true;
30265+ # ...
30266+ };
3026730268+ # Use config.system.build to exports relevant parts of a
30269+ # configuration. The runner attribute should not be
30270+ # considered a fully general replacement for systemd
30271+ # functionality.
30272+ config.system.build.run-nginx = config.systemd.services.nginx.runner;
30273+ });
30274+ in
30275+ myOS.run-nginx
3027630277+ Unlike in plain NixOS, the nixpkgs.config and
30278+ nixpkgs.system options will be ignored by default. Instead,
30279+ nixpkgs.pkgs will have the default value of pkgs as it was
30280+ constructed right after invoking the nixpkgs function (e.g. the
30281+ value of import <nixpkgs> { overlays = [./my-overlay.nix]; }
30282+ but not the value of (import <nixpkgs> {} // { extra = ...; }).
3028330284+ If you do want to use the config.nixpkgs options, you are
30285+ probably better off by calling nixos/lib/eval-config.nix
30286+ directly, even though it is possible to set config.nixpkgs.pkgs.
3028730288+ For more information about writing NixOS modules, see
30289+ https://nixos.org/nixos/manual/index.html#sec-writing-modules
3029030291+ Note that you will need to have called Nixpkgs with the system
30292+ parameter set to the right value for your deployment target.
30293 */
30294 nixos =
30295 configuration:
···30357 test:
30358 let
30359 loadedTest = if builtins.typeOf test == "path"
30360+ then import test
30361+ else test;
30362 calledTest = if pkgs.lib.isFunction loadedTest
30363+ then callPackage loadedTest {}
30364+ else loadedTest;
30365 in
30366 nixosTesting.makeTest calledTest;
30367···31021 };
3102231023 xsw = callPackage ../applications/misc/xsw {
31024+ # Enable the next line to use this in terminal.
31025+ # Note that it requires sixel capable terminals such as mlterm
31026+ # or xterm -ti 340
31027+ SDL = SDL_sixel;
31028 };
3102931030 xteddy = callPackage ../applications/misc/xteddy { };