Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6f3bd5db2f4d
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8468a4bfc749
Choose a head ref
Loading
Showing with 19,243 additions and 9,055 deletions.
  1. +62 −8 doc/languages-frameworks/vim.section.md
  2. +5 −0 lib/licenses.nix
  3. +1 −1 lib/minver.nix
  4. +6 −3 nixos/doc/manual/installation/upgrading.xml
  5. +15 −44 nixos/doc/manual/release-notes/rl-1809.xml
  6. +5 −1 nixos/lib/eval-config.nix
  7. +15 −6 nixos/modules/config/shells-environment.nix
  8. +1 −1 nixos/modules/config/xdg/mime.nix
  9. +4 −4 nixos/modules/installer/tools/nix-fallback-paths.nix
  10. +8 −4 nixos/modules/misc/nixpkgs.nix
  11. +7 −5 nixos/modules/programs/bash/bash.nix
  12. +10 −9 nixos/modules/programs/fish.nix
  13. +8 −6 nixos/modules/programs/zsh/zsh.nix
  14. +7 −7 nixos/modules/services/networking/networkmanager.nix
  15. +1 −1 nixos/modules/tasks/network-interfaces.nix
  16. +9 −8 pkgs/applications/altcoins/btc1.nix
  17. +5 −2 pkgs/applications/altcoins/default.nix
  18. +1 −1 pkgs/applications/backup/deja-dup/default.nix
  19. +4 −4 pkgs/applications/editors/nano/default.nix
  20. +12 −4 pkgs/applications/graphics/PythonMagick/default.nix
  21. +16 −10 pkgs/applications/graphics/antimony/default.nix
  22. +2 −2 pkgs/applications/misc/dbeaver/default.nix
  23. +4 −0 pkgs/applications/misc/khal/default.nix
  24. +5 −10 pkgs/applications/misc/qpdfview/default.nix
  25. +3 −3 pkgs/applications/misc/solaar/default.nix
  26. +2 −11 pkgs/applications/networking/browsers/chromium/common.nix
  27. +0 −12 pkgs/applications/networking/browsers/chromium/patches/remove-webp-include-68.patch
  28. +9 −9 pkgs/applications/networking/browsers/chromium/upstream-info.nix
  29. +1 −1 pkgs/applications/networking/browsers/qutebrowser/default.nix
  30. +4 −1 pkgs/applications/science/astronomy/gildas/default.nix
  31. +153 −54 pkgs/applications/science/math/sage/patches/{numpy-1.14.3.patch → numpy-1.15.1.patch}
  32. +13 −2 pkgs/applications/science/math/sage/sage-src.nix
  33. +4 −1 pkgs/applications/version-management/git-and-tools/cgit/default.nix
  34. +2 −2 pkgs/data/misc/hackage/default.nix
  35. +2 −3 pkgs/data/misc/iana-etc/default.nix
  36. +1 −1 pkgs/desktops/gnome-3/apps/file-roller/default.nix
  37. +1 −1 pkgs/desktops/gnome-3/apps/gnome-characters/default.nix
  38. +3 −1 pkgs/desktops/gnome-3/core/evolution-data-server/default.nix
  39. +1 −1 pkgs/desktops/gnome-3/core/gnome-settings-daemon/default.nix
  40. +2 −5 pkgs/desktops/gnome-3/core/libgee/default.nix
  41. +13 −0 pkgs/desktops/gnome-3/core/libgee/fix_introspection_paths.patch
  42. +1 −1 pkgs/desktops/gnome-3/core/totem/default.nix
  43. 0 pkgs/desktops/lxqt/{optional → }/compton-conf/default.nix
  44. +31 −31 pkgs/desktops/lxqt/default.nix
  45. 0 pkgs/desktops/lxqt/{core → }/libfm-qt/default.nix
  46. 0 pkgs/desktops/lxqt/{base → }/liblxqt/default.nix
  47. 0 pkgs/desktops/lxqt/{base → }/libqtxdg/default.nix
  48. 0 pkgs/desktops/lxqt/{base → }/libsysstat/default.nix
  49. 0 pkgs/desktops/lxqt/{optional → }/lximage-qt/default.nix
  50. 0 pkgs/desktops/lxqt/{core → }/lxqt-about/default.nix
  51. 0 pkgs/desktops/lxqt/{core → }/lxqt-admin/default.nix
  52. 0 pkgs/desktops/lxqt/{base → }/lxqt-build-tools/default.nix
  53. 0 pkgs/desktops/lxqt/{core → }/lxqt-config/default.nix
  54. 0 pkgs/desktops/lxqt/{core → }/lxqt-globalkeys/default.nix
  55. 0 pkgs/desktops/lxqt/{core → }/lxqt-l10n/default.nix
  56. 0 pkgs/desktops/lxqt/{core → }/lxqt-notificationd/default.nix
  57. 0 pkgs/desktops/lxqt/{core → }/lxqt-openssh-askpass/default.nix
  58. 0 pkgs/desktops/lxqt/{core → }/lxqt-panel/default.nix
  59. 0 pkgs/desktops/lxqt/{core → }/lxqt-policykit/default.nix
  60. 0 pkgs/desktops/lxqt/{core → }/lxqt-powermanagement/default.nix
  61. 0 pkgs/desktops/lxqt/{core → }/lxqt-qtplugin/default.nix
  62. 0 pkgs/desktops/lxqt/{core → }/lxqt-runner/default.nix
  63. 0 pkgs/desktops/lxqt/{core → }/lxqt-session/default.nix
  64. 0 pkgs/desktops/lxqt/{core → }/lxqt-sudo/default.nix
  65. 0 pkgs/desktops/lxqt/{core → }/lxqt-themes/default.nix
  66. 0 pkgs/desktops/lxqt/{optional → }/obconf-qt/default.nix
  67. 0 pkgs/desktops/lxqt/{core → }/pavucontrol-qt/default.nix
  68. 0 pkgs/desktops/lxqt/{core → }/pcmanfm-qt/default.nix
  69. 0 pkgs/desktops/lxqt/{optional → }/qlipper/default.nix
  70. 0 pkgs/desktops/lxqt/{optional → }/qps/default.nix
  71. 0 pkgs/desktops/lxqt/{optional → }/qterminal/default.nix
  72. 0 pkgs/desktops/lxqt/{core → }/qtermwidget/0.7.1.nix
  73. 0 pkgs/desktops/lxqt/{core → }/qtermwidget/default.nix
  74. 0 pkgs/desktops/lxqt/{optional → }/screengrab/default.nix
  75. +4 −0 pkgs/development/compilers/ghc/8.4.3.nix
  76. +7 −1 pkgs/development/compilers/ghc/8.6.1.nix
  77. +1 −1 pkgs/development/coq-modules/QuickChick/default.nix
  78. +1 −1 pkgs/development/coq-modules/category-theory/default.nix
  79. +1 −1 pkgs/development/coq-modules/coq-haskell/default.nix
  80. +8 −0 pkgs/development/haskell-modules/configuration-common.nix
  81. +2 −2 pkgs/development/haskell-modules/generic-builder.nix
  82. +1 −0 pkgs/development/libraries/boost/generic.nix
  83. +16 −14 pkgs/development/libraries/bullet/default.nix
  84. +1 −1 pkgs/development/libraries/glib-networking/default.nix
  85. +4 −9 pkgs/development/libraries/glibc/common.nix
  86. +3 −3 pkgs/development/libraries/gvfs/default.nix
  87. +2 −2 pkgs/development/libraries/libwnck/3.x.nix
  88. +4 −2 pkgs/development/libraries/mono-addins/default.nix
  89. +2 −2 pkgs/development/libraries/nix-plugins/default.nix
  90. +1 −1 pkgs/development/libraries/openbsm/default.nix
  91. +1 −1 pkgs/development/libraries/pipewire/default.nix
  92. +9 −1 pkgs/development/libraries/poppler/0.61.nix
  93. +13 −10 pkgs/development/libraries/qt-5/5.11/default.nix
  94. +0 −5 pkgs/development/libraries/qt-5/modules/qtwebkit.nix
  95. +1 −1 pkgs/development/libraries/qt-5/qtModule.nix
  96. +4 −2 pkgs/development/libraries/science/math/sympow/default.nix
  97. +1 −1 pkgs/development/libraries/spice-gtk/default.nix
  98. +2 −0 pkgs/development/python-modules/alot/default.nix
  99. +2 −2 pkgs/development/python-modules/confluent-kafka/default.nix
  100. +3 −1 pkgs/development/python-modules/cozy/default.nix
  101. +5 −3 pkgs/development/python-modules/django-raster/default.nix
  102. +2 −0 pkgs/development/python-modules/fiona/default.nix
  103. +16 −5 pkgs/development/python-modules/flask-ldap-login/default.nix
  104. +38 −0 pkgs/development/python-modules/genanki/default.nix
  105. +5 −5 pkgs/development/python-modules/geopandas/default.nix
  106. +3 −1 pkgs/development/python-modules/joblib/default.nix
  107. +2 −1 pkgs/development/python-modules/jupyterlab_launcher/default.nix
  108. +2 −2 pkgs/development/python-modules/kubernetes/default.nix
  109. +7 −3 pkgs/development/python-modules/libusb1/default.nix
  110. +9 −11 pkgs/development/python-modules/locustio/default.nix
  111. +33 −0 pkgs/development/python-modules/mahotas/default.nix
  112. +34 −0 pkgs/development/python-modules/mahotas/disable-impure-tests.patch
  113. +2 −1 pkgs/development/python-modules/ncclient/default.nix
  114. +4 −4 pkgs/development/python-modules/nipype/default.nix
  115. +2 −5 pkgs/development/python-modules/ordered-set/default.nix
  116. +2 −0 pkgs/development/python-modules/persistent/default.nix
  117. +5 −3 pkgs/development/python-modules/phonopy/default.nix
  118. +1 −1 pkgs/development/python-modules/pycaption/default.nix
  119. +5 −6 pkgs/development/python-modules/pymatgen/default.nix
  120. +5 −3 pkgs/development/python-modules/pyowm/default.nix
  121. +3 −3 pkgs/development/python-modules/pyslurm/default.nix
  122. +4 −3 pkgs/development/python-modules/pytest-flakes/default.nix
  123. +29 −0 pkgs/development/python-modules/selectors2/default.nix
  124. +30 −0 pkgs/development/python-modules/sniffio/default.nix
  125. +57 −21 pkgs/development/python-modules/spacy/models.json
  126. +2 −2 pkgs/development/python-modules/tifffile/default.nix
  127. +2 −0 pkgs/development/python-modules/trio/default.nix
  128. +1 −1 pkgs/development/python-modules/urlgrabber/default.nix
  129. +2 −2 pkgs/development/tools/build-managers/bazel/default.nix
  130. +1 −0 pkgs/development/tools/build-managers/pants/default.nix
  131. +5 −5 pkgs/development/tools/castxml/default.nix
  132. +4 −4 pkgs/development/tools/dep2nix/default.nix
  133. +22 −0 pkgs/development/tools/govendor/default.nix
  134. +13 −0 pkgs/development/tools/hcloud/default.nix
  135. +2 −0 pkgs/development/tools/jbake/default.nix
  136. +3 −0 pkgs/development/tools/misc/texinfo/common.nix
  137. +43 −0 pkgs/development/tools/misc/texinfo/perl.patch
  138. +1 −1 pkgs/development/web/nodejs/nodejs.nix
  139. +2 −2 pkgs/development/web/nodejs/v6.nix
  140. +25 −13 pkgs/games/chessx/default.nix
  141. +7 −2 pkgs/games/quakespasm/vulkan.nix
  142. +67 −0 pkgs/misc/emulators/yabause/0001-Fixes-for-Qt-5.11-upgrade.patch
  143. +10 −7 pkgs/misc/emulators/yabause/default.nix
  144. +0 −10 pkgs/misc/emulators/yabause/emu-compatibility.com.patch
  145. +2 −2 pkgs/os-specific/linux/busybox/default.nix
  146. +13 −0 pkgs/os-specific/linux/cryptsetup/default.nix
  147. +19 −0 pkgs/os-specific/linux/cryptsetup/disable-failing-tests.patch
  148. +2 −2 pkgs/os-specific/linux/dbus-broker/default.nix
  149. +5 −5 pkgs/os-specific/linux/earlyoom/default.nix
  150. +2 −2 pkgs/os-specific/linux/kernel/linux-4.14.nix
  151. +2 −2 pkgs/os-specific/linux/kernel/linux-4.18.nix
  152. +2 −2 pkgs/os-specific/linux/kernel/linux-4.4.nix
  153. +2 −2 pkgs/os-specific/linux/kernel/linux-4.9.nix
  154. +9 −2 pkgs/os-specific/linux/nfs-utils/default.nix
  155. +1 −1 pkgs/os-specific/linux/selinux-sandbox/default.nix
  156. +2 −3 pkgs/os-specific/linux/spl/default.nix
  157. +2 −2 pkgs/os-specific/linux/systemd/default.nix
  158. +3 −3 pkgs/os-specific/linux/zfs/default.nix
  159. +2 −2 pkgs/servers/matrix-synapse/default.nix
  160. +1 −1 pkgs/servers/rpcbind/default.nix
  161. +3 −0 pkgs/stdenv/generic/default.nix
  162. +13 −14 pkgs/tools/X11/xsettingsd/default.nix
  163. +8 −2 pkgs/tools/admin/aws-vault/default.nix
  164. +5 −1 pkgs/tools/graphics/gmic/default.nix
  165. +5 −5 pkgs/tools/misc/colord/default.nix
  166. +3 −3 pkgs/tools/misc/kdecoration-viewer/default.nix
  167. +12 −2 pkgs/tools/misc/youtube-dl/default.nix
  168. +9 −1 pkgs/tools/networking/aria2/default.nix
  169. +13 −11 pkgs/tools/networking/dd-agent/6.nix
  170. +8 −0 pkgs/tools/networking/dd-agent/README.md
  171. +864 −107 pkgs/tools/networking/dd-agent/deps.nix
  172. +4 −1 pkgs/tools/networking/strongswan/default.nix
  173. +9 −7 pkgs/tools/package-management/nix/default.nix
  174. +2 −2 pkgs/tools/typesetting/biber/default.nix
  175. +1 −0 pkgs/tools/typesetting/pdf2htmlEX/default.nix
  176. +68 −0 pkgs/tools/typesetting/tex/texlive/UPGRADING.md
  177. +19 −17 pkgs/tools/typesetting/tex/texlive/bin.nix
  178. +46 −35 pkgs/tools/typesetting/tex/texlive/default.nix
  179. +10 −0 pkgs/tools/typesetting/tex/texlive/fixHashes.sh
  180. +7,953 −0 pkgs/tools/typesetting/tex/texlive/fixedHashes.nix
  181. +0 −30 pkgs/tools/typesetting/tex/texlive/luatex-gcc7.patch
  182. +9,018 −8,266 pkgs/tools/typesetting/tex/texlive/pkgs.nix
  183. +13 −13 pkgs/top-level/all-packages.nix
  184. +9 −3 pkgs/top-level/perl-packages.nix
  185. +9 −29 pkgs/top-level/python-packages.nix
70 changes: 62 additions & 8 deletions doc/languages-frameworks/vim.section.md
Original file line number Diff line number Diff line change
@@ -5,11 +5,16 @@ date: 2016-06-25
---
# User's Guide to Vim Plugins/Addons/Bundles/Scripts in Nixpkgs

You'll get a vim(-your-suffix) in PATH also loading the plugins you want.
Both Neovim and Vim can be configured to include your favorite plugins
and additional libraries.

Loading can be deferred; see examples.

Vim packages, VAM (=vim-addon-manager) and Pathogen are supported to load
packages.
At the moment we support three different methods for managing plugins:

- Vim packages (*recommend*)
- VAM (=vim-addon-manager)
- Pathogen

## Custom configuration

@@ -25,7 +30,19 @@ vim_configurable.customize {
}
```

## Vim packages
For Neovim the `configure` argument can be overridden to achieve the same:

```
neovim.override {
configure = {
customRC = ''
# here your custom configuration goes!
'';
};
}
```

## Managing plugins with Vim packages

To store you plugins in Vim packages the following example can be used:

@@ -38,13 +55,50 @@ vim_configurable.customize {
opt = [ phpCompletion elm-vim ];
# To automatically load a plugin when opening a filetype, add vimrc lines like:
# autocmd FileType php :packadd phpCompletion
}
};
};
}
```

For Neovim the syntax is

```
neovim.override {
configure = {
customRC = ''
# here your custom configuration goes!
'';
packages.myVimPackage = with pkgs.vimPlugins; {
# see examples below how to use custom packages
start = [ ];
opt = [ ];
};
};
}
```

The resulting package can be added to `packageOverrides` in `~/.nixpkgs/config.nix` to make it installable:

```
{
packageOverrides = pkgs: with pkgs; {
myVim = vim_configurable.customize {
name = "vim-with-plugins";
# add here code from the example section
};
myNeovim = neovim.override {
configure = {
# add here code from the example section
};
};
};
}
```

After that you can install your special grafted `myVim` or `myNeovim` packages.

## VAM
## Managing plugins with VAM

### dependencies by Vim plugins
### Handling dependencies of Vim plugins

VAM introduced .json files supporting dependencies without versioning
assuming that "using latest version" is ok most of the time.
5 changes: 5 additions & 0 deletions lib/licenses.nix
Original file line number Diff line number Diff line change
@@ -355,6 +355,11 @@ lib.mapAttrs (n: v: v // { shortName = n; }) rec {
fullName = "Independent JPEG Group License";
};

imagemagick = spdx {
fullName = "ImageMagick License";
spdxId = "imagemagick";
};

inria-compcert = {
fullName = "INRIA Non-Commercial License Agreement for the CompCert verified compiler";
url = "http://compcert.inria.fr/doc/LICENSE";
2 changes: 1 addition & 1 deletion lib/minver.nix
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Expose the minimum required version for evaluating Nixpkgs
"2.0"
"1.11"
9 changes: 6 additions & 3 deletions nixos/doc/manual/installation/upgrading.xml
Original file line number Diff line number Diff line change
@@ -52,10 +52,13 @@
</listitem>
</itemizedlist>
To see what channels are available, go to
<link
xlink:href="https://nixos.org/channels"/>. (Note that the URIs of the
<link xlink:href="https://nixos.org/channels"/>. (Note that the URIs of the
various channels redirect to a directory that contains the channel’s latest
version and includes ISO images and VirtualBox appliances.)
version and includes ISO images and VirtualBox appliances.) Please note that
during the release process, channels that are not yet released will be
present here as well. See the Getting NixOS page
<link xlink:href="https://nixos.org/nixos/download.html"/> to find the newest
supported stable release.
</para>
<para>
When you first install NixOS, you’re automatically subscribed to the NixOS
59 changes: 15 additions & 44 deletions nixos/doc/manual/release-notes/rl-1809.xml
Original file line number Diff line number Diff line change
@@ -139,50 +139,6 @@ $ nix-instantiate -E '(import &lt;nixpkgsunstable&gt; {}).gitFull'
seen a complete rewrite. (See above.)
</para>
</listitem>
<listitem>
<para>
The minimum version of Nix required to evaluate Nixpkgs is now 2.0.
</para>
<itemizedlist>
<listitem>
<para>
For users of NixOS 18.03, NixOS 18.03 defaulted to Nix 2.0, but
supported using Nix 1.11 by setting <literal>nix.package =
pkgs.nix1;</literal>. If this option is set to a Nix 1.11 package, you
will need to either unset the option or upgrade it to Nix 2.0.
</para>
</listitem>
<listitem>
<para>
For users of NixOS 17.09, you will first need to upgrade Nix by setting
<literal>nix.package = pkgs.nixStable2;</literal> and run
<command>nixos-rebuild switch</command> as the <literal>root</literal>
user.
</para>
</listitem>
<listitem>
<para>
For users of a daemon-less Nix installation on Linux or macOS, you can
upgrade Nix by running <command>curl https://nixos.org/nix/install |
sh</command>, or prior to doing a channel update, running
<command>nix-env -iA nix</command>.
</para>
<para>
If you have already run a channel update and Nix is no longer able to
evaluate Nixpkgs, the error message printed should provide adequate
directions for upgrading Nix.
</para>
</listitem>
<listitem>
<para>
For users of the Nix daemon on macOS, you can upgrade Nix by running
<command>sudo -i sh -c 'nix-channel --update &amp;&amp; nix-env -iA
nixpkgs.nix'; sudo launchctl stop org.nixos.nix-daemon; sudo launchctl
start org.nixos.nix-daemon</command>.
</para>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<para>
<literal>lib.strict</literal> is removed. Use
@@ -283,6 +239,14 @@ $ nix-instantiate -E '(import &lt;nixpkgsunstable&gt; {}).gitFull'
from your config without any issues.
</para>
</listitem>
<listitem>
<para>
<literal>stdenv.system</literal> and <literal>system</literal> in nixpkgs now refer to the host platform instead of the build platform.
For native builds this is not change, let alone a breaking one.
For cross builds, it is a breaking change, and <literal>stdenv.buildPlatform.system</literal> can be used instead for the old behavior.
They should be using that anyways for clarity.
</para>
</listitem>
</itemizedlist>
</section>

@@ -536,6 +500,13 @@ inherit (pkgs.nixos {
a new paragraph.
</para>
</listitem>
<listitem>
<para>
Top-level <literal>buildPlatform</literal>, <literal>hostPlatform</literal>, and <literal>targetPlatform</literal> in Nixpkgs are deprecated.
Please use their equivalents in <literal>stdenv</literal> instead:
<literal>stdenv.buildPlatform</literal>, <literal>stdenv.hostPlatform</literal>, and <literal>stdenv.targetPlatform</literal>.
</para>
</listitem>
</itemizedlist>
</section>
</section>
6 changes: 5 additions & 1 deletion nixos/lib/eval-config.nix
Original file line number Diff line number Diff line change
@@ -36,7 +36,11 @@ let
_file = ./eval-config.nix;
key = _file;
config = {
nixpkgs.localSystem = lib.mkDefault { inherit system; };
# Explicit `nixpkgs.system` or `nixpkgs.localSystem` should override
# this. Since the latter defaults to the former, the former should
# default to the argument. That way this new default could propagate all
# they way through, but has the last priority behind everything else.
nixpkgs.system = lib.mkDefault system;
_module.args.pkgs = lib.mkIf (pkgs_ != null) (lib.mkForce pkgs_);
};
};
21 changes: 15 additions & 6 deletions nixos/modules/config/shells-environment.nix
Original file line number Diff line number Diff line change
@@ -163,15 +163,24 @@ in
/bin/sh
'';

# For resetting environment with `. /etc/set-environment` when needed
# and discoverability (see motivation of #30418).
environment.etc."set-environment".source = config.system.build.setEnvironment;

system.build.setEnvironment = pkgs.writeText "set-environment"
''
${exportedEnvVars}
''
# DO NOT EDIT -- this file has been generated automatically.
# Prevent this file from being sourced by child shells.
export __NIXOS_SET_ENVIRONMENT_DONE=1
${cfg.extraInit}
${exportedEnvVars}
# ~/bin if it exists overrides other bin directories.
export PATH="$HOME/bin:$PATH"
'';
${cfg.extraInit}
# ~/bin if it exists overrides other bin directories.
export PATH="$HOME/bin:$PATH"
'';

system.activationScripts.binsh = stringAfter [ "stdio" ]
''
2 changes: 1 addition & 1 deletion nixos/modules/config/xdg/mime.nix
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ with lib;
];

environment.extraSetup = ''
if [ -w $out/share/mime ]; then
if [ -w $out/share/mime ] && [ -d $out/share/mime/packages ]; then
XDG_DATA_DIRS=$out/share ${pkgs.shared-mime-info}/bin/update-mime-database -V $out/share/mime > /dev/null
fi
8 changes: 4 additions & 4 deletions nixos/modules/installer/tools/nix-fallback-paths.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
x86_64-linux = "/nix/store/0d60i73mcv8z1m8d2m74yfn84980gfsa-nix-2.0.4";
i686-linux = "/nix/store/6ssafj2s5a2g9x28yld7b70vwd6vw6lb-nix-2.0.4";
aarch64-linux = "/nix/store/3wwch7bp7n7xsl8apgy2a4b16yzyij1z-nix-2.0.4";
x86_64-darwin = "/nix/store/771l8i0mz4c8kry8cz3sz8rr3alalckg-nix-2.0.4";
x86_64-linux = "/nix/store/h180y3n5k1ypxgm1pcvj243qix5j45zz-nix-2.1.1";
i686-linux = "/nix/store/v2y4k4v9ml07jmfq739wyflapg3b7b5k-nix-2.1.1";
aarch64-linux = "/nix/store/v485craglq7xm5996ci8qy5dyc17dab0-nix-2.1.1";
x86_64-darwin = "/nix/store/lc3ymlix73kaad5srjdgaxp9ngr1sg6g-nix-2.1.1";
}
12 changes: 8 additions & 4 deletions nixos/modules/misc/nixpkgs.nix
Original file line number Diff line number Diff line change
@@ -62,12 +62,11 @@ in
pkgs = mkOption {
defaultText = literalExample
''import "''${nixos}/.." {
inherit (config.nixpkgs) config overlays localSystem crossSystem;
inherit (cfg) config overlays localSystem crossSystem;
}
'';
default = import ../../.. {
localSystem = { inherit (cfg) system; } // cfg.localSystem;
inherit (cfg) config overlays crossSystem;
inherit (cfg) config overlays localSystem crossSystem;
};
type = pkgsType;
example = literalExample ''import <nixpkgs> {}'';
@@ -140,8 +139,11 @@ in

localSystem = mkOption {
type = types.attrs; # TODO utilize lib.systems.parsedPlatform
default = { system = builtins.currentSystem; };
default = { inherit (cfg) system; };
example = { system = "aarch64-linux"; config = "aarch64-unknown-linux-gnu"; };
# Make sure that the final value has all fields for sake of other modules
# referring to this. TODO make `lib.systems` itself use the module system.
apply = lib.systems.elaborate;
defaultText = literalExample
''(import "''${nixos}/../lib").lib.systems.examples.aarch64-multiplatform'';
description = ''
@@ -180,6 +182,7 @@ in
system = mkOption {
type = types.str;
example = "i686-linux";
default = { system = builtins.currentSystem; };
description = ''
Specifies the Nix platform type on which NixOS should be built.
It is better to specify <code>nixpkgs.localSystem</code> instead.
@@ -196,6 +199,7 @@ in
</programlisting>
See <code>nixpkgs.localSystem</code> for more information.
Ignored when <code>nixpkgs.localSystem</code> is set.
Ignored when <code>nixpkgs.pkgs</code> is set.
'';
};
12 changes: 7 additions & 5 deletions nixos/modules/programs/bash/bash.nix
Original file line number Diff line number Diff line change
@@ -126,7 +126,9 @@ in
programs.bash = {

shellInit = ''
${config.system.build.setEnvironment.text}
if [ -z "$__NIXOS_SET_ENVIRONMENT_DONE" ]; then
. ${config.system.build.setEnvironment}
fi
${cfge.shellInit}
'';
@@ -166,11 +168,11 @@ in
# Read system-wide modifications.
if test -f /etc/profile.local; then
. /etc/profile.local
. /etc/profile.local
fi
if [ -n "''${BASH_VERSION:-}" ]; then
. /etc/bashrc
. /etc/bashrc
fi
'';

@@ -191,12 +193,12 @@ in
# We are not always an interactive shell.
if [ -n "$PS1" ]; then
${cfg.interactiveShellInit}
${cfg.interactiveShellInit}
fi
# Read system-wide modifications.
if test -f /etc/bashrc.local; then
. /etc/bashrc.local
. /etc/bashrc.local
fi
'';

Loading