···457457458458 # `fetchurl' downloads a file from the network.
459459 fetchurl = if stdenv.buildPlatform != stdenv.hostPlatform
460460- then buildPackages.fetchurl # No need to do special overrides twice,
461461- else makeOverridable (import ../build-support/fetchurl) {
462462- inherit lib stdenvNoCC buildPackages;
463463- inherit cacert;
464464- curl = buildPackages.curlMinimal.override (old: rec {
465465- # break dependency cycles
466466- fetchurl = stdenv.fetchurlBoot;
467467- zlib = buildPackages.zlib.override { fetchurl = stdenv.fetchurlBoot; };
468468- pkg-config = buildPackages.pkg-config.override (old: {
469469- pkg-config = old.pkg-config.override {
470470- fetchurl = stdenv.fetchurlBoot;
471471- };
472472- });
473473- perl = buildPackages.perl.override { fetchurl = stdenv.fetchurlBoot; };
474474- openssl = buildPackages.openssl.override {
460460+ then buildPackages.fetchurl # No need to do special overrides twice,
461461+ else makeOverridable (import ../build-support/fetchurl) {
462462+ inherit lib stdenvNoCC buildPackages;
463463+ inherit cacert;
464464+ curl = buildPackages.curlMinimal.override (old: rec {
465465+ # break dependency cycles
475466 fetchurl = stdenv.fetchurlBoot;
476476- buildPackages = {
477477- coreutils = buildPackages.coreutils.override {
467467+ zlib = buildPackages.zlib.override { fetchurl = stdenv.fetchurlBoot; };
468468+ pkg-config = buildPackages.pkg-config.override (old: {
469469+ pkg-config = old.pkg-config.override {
478470 fetchurl = stdenv.fetchurlBoot;
471471+ };
472472+ });
473473+ perl = buildPackages.perl.override { fetchurl = stdenv.fetchurlBoot; };
474474+ openssl = buildPackages.openssl.override {
475475+ fetchurl = stdenv.fetchurlBoot;
476476+ buildPackages = {
477477+ coreutils = buildPackages.coreutils.override {
478478+ fetchurl = stdenv.fetchurlBoot;
479479+ inherit perl;
480480+ xz = buildPackages.xz.override { fetchurl = stdenv.fetchurlBoot; };
481481+ gmp = null;
482482+ aclSupport = false;
483483+ attrSupport = false;
484484+ };
479485 inherit perl;
480480- xz = buildPackages.xz.override { fetchurl = stdenv.fetchurlBoot; };
481481- gmp = null;
482482- aclSupport = false;
483483- attrSupport = false;
484486 };
485487 inherit perl;
486488 };
487487- inherit perl;
488488- };
489489- libssh2 = buildPackages.libssh2.override {
490490- fetchurl = stdenv.fetchurlBoot;
491491- inherit zlib openssl;
492492- };
493493- # On darwin, libkrb5 needs bootstrap_cmds which would require
494494- # converting many packages to fetchurl_boot to avoid evaluation cycles.
495495- # So turn gssSupport off there, and on Windows.
496496- # On other platforms, keep the previous value.
497497- gssSupport =
498498- if stdenv.isDarwin || stdenv.hostPlatform.isWindows
499499- then false
500500- else old.gssSupport or true; # `? true` is the default
501501- libkrb5 = buildPackages.libkrb5.override {
502502- fetchurl = stdenv.fetchurlBoot;
503503- inherit pkg-config perl openssl;
504504- keyutils = buildPackages.keyutils.override { fetchurl = stdenv.fetchurlBoot; };
505505- };
506506- nghttp2 = buildPackages.nghttp2.override {
507507- fetchurl = stdenv.fetchurlBoot;
508508- inherit zlib pkg-config openssl;
509509- c-ares = buildPackages.c-ares.override { fetchurl = stdenv.fetchurlBoot; };
510510- libev = buildPackages.libev.override { fetchurl = stdenv.fetchurlBoot; };
511511- };
512512- });
513513- };
489489+ libssh2 = buildPackages.libssh2.override {
490490+ fetchurl = stdenv.fetchurlBoot;
491491+ inherit zlib openssl;
492492+ };
493493+ # On darwin, libkrb5 needs bootstrap_cmds which would require
494494+ # converting many packages to fetchurl_boot to avoid evaluation cycles.
495495+ # So turn gssSupport off there, and on Windows.
496496+ # On other platforms, keep the previous value.
497497+ gssSupport =
498498+ if stdenv.isDarwin || stdenv.hostPlatform.isWindows
499499+ then false
500500+ else old.gssSupport or true; # `? true` is the default
501501+ libkrb5 = buildPackages.libkrb5.override {
502502+ fetchurl = stdenv.fetchurlBoot;
503503+ inherit pkg-config perl openssl;
504504+ keyutils = buildPackages.keyutils.override { fetchurl = stdenv.fetchurlBoot; };
505505+ };
506506+ nghttp2 = buildPackages.nghttp2.override {
507507+ fetchurl = stdenv.fetchurlBoot;
508508+ inherit zlib pkg-config openssl;
509509+ c-ares = buildPackages.c-ares.override { fetchurl = stdenv.fetchurlBoot; };
510510+ libev = buildPackages.libev.override { fetchurl = stdenv.fetchurlBoot; };
511511+ };
512512+ });
513513+ };
514514515515 fetchRepoProject = callPackage ../build-support/fetchrepoproject { };
516516···14701470 grc = python3Packages.callPackage ../tools/misc/grc { };
1471147114721472 green-pdfviewer = callPackage ../applications/misc/green-pdfviewer {
14731473- SDL = SDL_sixel;
14731473+ SDL = SDL_sixel;
14741474 };
1475147514761476 gremlin-console = callPackage ../applications/misc/gremlin-console {
···42334233 wallutils = callPackage ../tools/graphics/wallutils { };
4234423442354235 wrangler = callPackage ../development/tools/wrangler {
42364236- inherit (darwin.apple_sdk.frameworks) CoreFoundation CoreServices Security;
42364236+ inherit (darwin.apple_sdk.frameworks) CoreFoundation CoreServices Security;
42374237 };
4238423842394239 wsl-open = callPackage ../tools/misc/wsl-open { };
···5145514551465146 gnu-pw-mgr = callPackage ../tools/security/gnu-pw-mgr { };
5147514751485148- gnused = if !stdenv.hostPlatform.isWindows then
51495149- callPackage ../tools/text/gnused { } # broken on Windows
51505150- else
51515151- gnused_422;
51485148+ gnused = if !stdenv.hostPlatform.isWindows
51495149+ then callPackage ../tools/text/gnused { } # broken on Windows
51505150+ else gnused_422;
51525151 # This is an easy work-around for [:space:] problems.
51535152 gnused_422 = callPackage ../tools/text/gnused/422.nix { };
51545153···10451104501045210451 crossLibcStdenv = overrideCC stdenv
1045310452 (if stdenv.hostPlatform.useLLVM or false
1045410454- then buildPackages.llvmPackages_8.lldClangNoLibc
1045510455- else buildPackages.gccCrossStageStatic);
1045310453+ then buildPackages.llvmPackages_8.lldClangNoLibc
1045410454+ else buildPackages.gccCrossStageStatic);
10456104551045710456 # The GCC used to build libc for the target platform. Normal gccs will be
1045810457 # built with, and use, that cross-compiled libc.
···1127411273 mint = callPackage ../development/compilers/mint { };
11275112741127611275 mitscheme = callPackage ../development/compilers/mit-scheme {
1127711277- texLive = texlive.combine { inherit (texlive) scheme-small; };
1127811278- texinfo = texinfo5;
1127911279- xlibsWrapper = null;
1127611276+ texLive = texlive.combine { inherit (texlive) scheme-small; };
1127711277+ texinfo = texinfo5;
1127811278+ xlibsWrapper = null;
1128011279 };
11281112801128211281 mitschemeX11 = mitscheme.override {
1128311283- texLive = texlive.combine { inherit (texlive) scheme-small; };
1128411284- texinfo = texinfo5;
1128511285- enableX11 = true;
1128211282+ texLive = texlive.combine { inherit (texlive) scheme-small; };
1128311283+ texinfo = texinfo5;
1128411284+ enableX11 = true;
1128611285 };
11287112861128811287 miranda = callPackage ../development/compilers/miranda {};
···1291612915 # };
1291712916 #
1291812917 distccWrapper = makeOverridable ({ extraConfig ? "" }:
1291912919- wrapCC (distcc.links extraConfig)) {};
1291812918+ wrapCC (distcc.links extraConfig)) {};
1292012919 distccStdenv = lowPrio (overrideCC stdenv buildPackages.distccWrapper);
12921129201292212921 distccMasquerade = if stdenv.isDarwin
···1606216061 libiconv =
1606316062 if lib.elem stdenv.hostPlatform.libc ["glibc" "musl" "wasilibc"]
1606416063 then glibcIconv (if stdenv.hostPlatform != stdenv.buildPlatform
1606516065- then libcCross
1606616066- else stdenv.cc.libc)
1606416064+ then libcCross
1606516065+ else stdenv.cc.libc)
1606716066 else if stdenv.hostPlatform.isDarwin
1606816067 then darwin.libiconv
1606916068 else libiconvReal;
···17520175191752117520 s2geometry = callPackage ../development/libraries/s2geometry { };
17522175211752317523- /* This package references ghc844, which we no longer have. Unfortunately, I
1752417524- have been unable to mark it as "broken" in a way that the ofBorg bot
1752517525- recognizes. Since I don't want to merge code into master that generates
1752617526- evaluation errors, I have no other idea but to comment it out entirely.
1752217522+ /* This package references ghc844, which we no longer have. Unfortunately, I
1752317523+ have been unable to mark it as "broken" in a way that the ofBorg bot
1752417524+ recognizes. Since I don't want to merge code into master that generates
1752517525+ evaluation errors, I have no other idea but to comment it out entirely.
17527175261752817527 sad = callPackage ../applications/science/logic/sad { };
1752917529- */
1752817528+ */
17530175291753117530 safefile = callPackage ../development/libraries/safefile {};
1753217531···2025320252 ];
2025420253 };
20255202542025620256- /* Linux kernel modules are inherently tied to a specific kernel. So
2025720257- rather than provide specific instances of those packages for a
2025820258- specific kernel, we have a function that builds those packages
2025920259- for a specific kernel. This function can then be called for
2026020260- whatever kernel you're using. */
2025520255+ /* Linux kernel modules are inherently tied to a specific kernel. So
2025620256+ rather than provide specific instances of those packages for a
2025720257+ specific kernel, we have a function that builds those packages
2025820258+ for a specific kernel. This function can then be called for
2025920259+ whatever kernel you're using. */
20261202602026220261 linuxPackagesFor = kernel_: lib.makeExtensible (self: with self; {
2026320262 callPackage = newScope self;
···20397203962039820397 mxu11x0 = callPackage ../os-specific/linux/mxu11x0 { };
20399203982040020400- /* compiles but has to be integrated into the kernel somehow
2040120401- Let's have it uncommented and finish it..
2040220402- */
2039920399+ # compiles but has to be integrated into the kernel somehow
2040020400+ # Let's have it uncommented and finish it..
2040320401 ndiswrapper = callPackage ../os-specific/linux/ndiswrapper { };
20404204022040520403 netatop = callPackage ../os-specific/linux/netatop { };
···2045820456 zenpower = callPackage ../os-specific/linux/zenpower { };
20459204572046020458 inherit (callPackages ../os-specific/linux/zfs {
2046120461- configFile = "kernel";
2046220462- inherit kernel;
2046320463- }) zfsStable zfsUnstable;
2045920459+ configFile = "kernel";
2046020460+ inherit kernel;
2046120461+ }) zfsStable zfsUnstable;
2046220462+ zfs = zfsStable;
20464204632046520465- zfs = zfsStable;
2046620466-2046720467- can-isotp = callPackage ../os-specific/linux/can-isotp { };
2046420464+ can-isotp = callPackage ../os-specific/linux/can-isotp { };
2046820465 });
20469204662047020467 # The current default kernel / kernel modules.
···2070920706 inherit (darwin.apple_sdk.frameworks) AppKit Security;
2071020707 };
20711207082071220712- nettools = if stdenv.isLinux then callPackage ../os-specific/linux/net-tools { }
2071320713- else unixtools.nettools;
2070920709+ nettools = if stdenv.isLinux
2071020710+ then callPackage ../os-specific/linux/net-tools { }
2071120711+ else unixtools.nettools;
20714207122071520713 nettools_mptcp = callPackage ../os-specific/linux/net-tools/mptcp.nix { };
2071620714···20909209072091020908 prayer = callPackage ../servers/prayer { };
20911209092091220912- procps = if stdenv.isLinux then callPackage ../os-specific/linux/procps-ng { }
2091320913- else unixtools.procps;
2091020910+ procps = if stdenv.isLinux
2091120911+ then callPackage ../os-specific/linux/procps-ng { }
2091220912+ else unixtools.procps;
20914209132091520914 procdump = callPackage ../os-specific/linux/procdump { };
2091620915···2206022059 ucs-fonts = callPackage ../data/fonts/ucs-fonts
2206122060 { inherit (buildPackages.xorg) fonttosfnt mkfontscale; };
22062220612206322063-2206422062 ultimate-oldschool-pc-font-pack = callPackage ../data/fonts/ultimate-oldschool-pc-font-pack { };
22065220632206622064 ultralist = callPackage ../applications/misc/ultralist { };
···2206822066 undefined-medium = callPackage ../data/fonts/undefined-medium { };
22069220672207022068 uni-vga = callPackage ../data/fonts/uni-vga
2207122071- { inherit (buildPackages.xorg) fonttosfnt mkfontscale; };
2206922069+ { inherit (buildPackages.xorg) fonttosfnt mkfontscale; };
22072220702207322071 unicode-character-database = callPackage ../data/misc/unicode-character-database { };
2207422072···2207722075 unihan-database = callPackage ../data/misc/unihan-database { };
22078220762207922077 unifont = callPackage ../data/fonts/unifont
2208022080- { inherit (buildPackages.xorg) fonttosfnt mkfontscale; };
2207822078+ { inherit (buildPackages.xorg) fonttosfnt mkfontscale; };
22081220792208222080 unifont_upper = callPackage ../data/fonts/unifont_upper { };
2208322081···2310823106 flwrap = callPackage ../applications/radio/flwrap { };
23109231072311023108 fluidsynth = callPackage ../applications/audio/fluidsynth {
2311123111- inherit (darwin.apple_sdk.frameworks) AudioUnit CoreAudio CoreMIDI CoreServices;
2310923109+ inherit (darwin.apple_sdk.frameworks) AudioUnit CoreAudio CoreMIDI CoreServices;
2311223110 };
2311323111 fluidsynth_1 = fluidsynth.override { version = "1"; };
2311423112···25105251032510625104 plank = callPackage ../applications/misc/plank { };
25107251052510825108- playonlinux = callPackage ../applications/misc/playonlinux {
2510925109- stdenv = stdenv_32bit;
2511025110- };
2510625106+ playonlinux = callPackage ../applications/misc/playonlinux
2510725107+ { stdenv = stdenv_32bit; };
25111251082511225109 pleroma-bot = python3Packages.callPackage ../development/python-modules/pleroma-bot { };
2511325110···2751027507 zgrviewer = callPackage ../applications/graphics/zgrviewer { };
27511275082751227509 zgv = callPackage ../applications/graphics/zgv {
2751327513- # Enable the below line for terminal display. Note
2751427514- # that it requires sixel graphics compatible terminals like mlterm
2751527515- # or xterm -ti 340
2751627516- SDL = SDL_sixel;
2751027510+ # Enable the below line for terminal display. Note
2751127511+ # that it requires sixel graphics compatible terminals like mlterm
2751227512+ # or xterm -ti 340
2751327513+ SDL = SDL_sixel;
2751727514 };
27518275152751927516 zim = callPackage ../applications/office/zim { };
···2944429441 elan = callPackage ../applications/science/logic/elan {};
2944529442 mathlibtools = with python3Packages; toPythonApplication mathlibtools;
29446294432944729447- leo2 = callPackage ../applications/science/logic/leo2 {
2944829448- ocaml = ocaml-ng.ocamlPackages_4_01_0.ocaml;};
2944429444+ leo2 = callPackage ../applications/science/logic/leo2
2944529445+ { ocaml = ocaml-ng.ocamlPackages_4_01_0.ocaml; };
29449294462945029447 leo3-bin = callPackage ../applications/science/logic/leo3/binary.nix {};
2945129448···30241302383024230239 nixops-dns = callPackage ../tools/package-management/nixops/nixops-dns.nix { };
30243302403024430244- /* Evaluate a NixOS configuration using this evaluation of Nixpkgs.
3024130241+ /*
3024230242+ Evaluate a NixOS configuration using this evaluation of Nixpkgs.
30245302433024630246- With this function you can write, for example, a package that
3024730247- depends on a custom virtual machine image.
3024430244+ With this function you can write, for example, a package that
3024530245+ depends on a custom virtual machine image.
30248302463024930249- Parameter: A module, path or list of those that represent the
3024730247+ Parameter: A module, path or list of those that represent the
3025030248 configuration of the NixOS system to be constructed.
30251302493025230252- Result: An attribute set containing packages produced by this
3025330253- evaluation of NixOS, such as toplevel, kernel and
3025430254- initialRamdisk.
3025530255- The result can be extended in the modules by defining
3025630256- extra attributes in system.build.
3025730257- Alternatively, you may use the result's config and
3025830258- options attributes to query any option.
3025030250+ Result: An attribute set containing packages produced by this
3025130251+ evaluation of NixOS, such as toplevel, kernel and
3025230252+ initialRamdisk.
3025330253+ The result can be extended in the modules by defining
3025430254+ extra attributes in system.build.
3025530255+ Alternatively, you may use the result's config and
3025630256+ options attributes to query any option.
30259302573026030260- Example:
3025830258+ Example:
30261302593026230262- let
3026330263- myOS = pkgs.nixos ({ lib, pkgs, config, ... }: {
3026030260+ let
3026130261+ myOS = pkgs.nixos ({ lib, pkgs, config, ... }: {
30264302623026530265- config.services.nginx = {
3026630266- enable = true;
3026730267- # ...
3026830268- };
3026330263+ config.services.nginx = {
3026430264+ enable = true;
3026530265+ # ...
3026630266+ };
30269302673027030270- # Use config.system.build to exports relevant parts of a
3027130271- # configuration. The runner attribute should not be
3027230272- # considered a fully general replacement for systemd
3027330273- # functionality.
3027430274- config.system.build.run-nginx = config.systemd.services.nginx.runner;
3027530275- });
3027630276- in
3027730277- myOS.run-nginx
3026830268+ # Use config.system.build to exports relevant parts of a
3026930269+ # configuration. The runner attribute should not be
3027030270+ # considered a fully general replacement for systemd
3027130271+ # functionality.
3027230272+ config.system.build.run-nginx = config.systemd.services.nginx.runner;
3027330273+ });
3027430274+ in
3027530275+ myOS.run-nginx
30278302763027930279- Unlike in plain NixOS, the nixpkgs.config and
3028030280- nixpkgs.system options will be ignored by default. Instead,
3028130281- nixpkgs.pkgs will have the default value of pkgs as it was
3028230282- constructed right after invoking the nixpkgs function (e.g. the
3028330283- value of import <nixpkgs> { overlays = [./my-overlay.nix]; }
3028430284- but not the value of (import <nixpkgs> {} // { extra = ...; }).
3027730277+ Unlike in plain NixOS, the nixpkgs.config and
3027830278+ nixpkgs.system options will be ignored by default. Instead,
3027930279+ nixpkgs.pkgs will have the default value of pkgs as it was
3028030280+ constructed right after invoking the nixpkgs function (e.g. the
3028130281+ value of import <nixpkgs> { overlays = [./my-overlay.nix]; }
3028230282+ but not the value of (import <nixpkgs> {} // { extra = ...; }).
30285302833028630286- If you do want to use the config.nixpkgs options, you are
3028730287- probably better off by calling nixos/lib/eval-config.nix
3028830288- directly, even though it is possible to set config.nixpkgs.pkgs.
3028430284+ If you do want to use the config.nixpkgs options, you are
3028530285+ probably better off by calling nixos/lib/eval-config.nix
3028630286+ directly, even though it is possible to set config.nixpkgs.pkgs.
30289302873029030290- For more information about writing NixOS modules, see
3029130291- https://nixos.org/nixos/manual/index.html#sec-writing-modules
3028830288+ For more information about writing NixOS modules, see
3028930289+ https://nixos.org/nixos/manual/index.html#sec-writing-modules
30292302903029330293- Note that you will need to have called Nixpkgs with the system
3029430294- parameter set to the right value for your deployment target.
3029130291+ Note that you will need to have called Nixpkgs with the system
3029230292+ parameter set to the right value for your deployment target.
3029530293 */
3029630294 nixos =
3029730295 configuration:
···3035930357 test:
3036030358 let
3036130359 loadedTest = if builtins.typeOf test == "path"
3036230362- then import test
3036330363- else test;
3036030360+ then import test
3036130361+ else test;
3036430362 calledTest = if pkgs.lib.isFunction loadedTest
3036530365- then callPackage loadedTest {}
3036630366- else loadedTest;
3036330363+ then callPackage loadedTest {}
3036430364+ else loadedTest;
3036730365 in
3036830366 nixosTesting.makeTest calledTest;
3036930367···3102331021 };
31024310223102531023 xsw = callPackage ../applications/misc/xsw {
3102631026- # Enable the next line to use this in terminal.
3102731027- # Note that it requires sixel capable terminals such as mlterm
3102831028- # or xterm -ti 340
3102931029- SDL = SDL_sixel;
3102431024+ # Enable the next line to use this in terminal.
3102531025+ # Note that it requires sixel capable terminals such as mlterm
3102631026+ # or xterm -ti 340
3102731027+ SDL = SDL_sixel;
3103031028 };
31031310293103231030 xteddy = callPackage ../applications/misc/xteddy { };