···2323- [ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside [nixos/tests](https://github.com/NixOS/nixpkgs/blob/master/nixos/tests))
2424- [ ] Tested compilation of all pkgs that depend on this change using `nix-shell -p nixpkgs-review --run "nixpkgs-review wip"`
2525- [ ] Tested execution of all binary files (usually in `./result/bin/`)
2626-- [21.11 Release Notes](./CONTRIBUTING.md#generating-2111-release-notes)
2626+- [21.11 Release Notes](https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md#generating-2111-release-notes)
2727 - [ ] (Package updates) Added a release notes entry if the change is major or breaking
2828 - [ ] (Module updates) Added a release notes entry if the change is significant
2929 - [ ] (Module addition) Added a release notes entry if adding a new NixOS module
-3
doc/contributing/coding-conventions.chapter.md
···183183184184- Arguments should be listed in the order they are used, with the exception of `lib`, which always goes first.
185185186186-- The top-level `lib` must be used in the master and 21.05 branch over its alias `stdenv.lib` as it now causes evaluation errors when aliases are disabled which is the case for ofborg.
187187- `lib` is unrelated to `stdenv`, and so `stdenv.lib` should only be used as a convenience alias when developing locally to avoid having to modify the function inputs just to test something out.
188188-189186## Package naming {#sec-package-naming}
190187191188The key words _must_, _must not_, _required_, _shall_, _shall not_, _should_, _should not_, _recommended_, _may_, and _optional_ in this section are to be interpreted as described in [RFC 2119](https://tools.ietf.org/html/rfc2119). Only _emphasized_ words are to be interpreted in this way.
···4343void pivot_host(const gchar *guest) {
4444 g_autofree gchar *point = g_build_filename(guest, "host", NULL);
4545 fail_if(g_mkdir(point, 0755));
4646- fail_if(mount(0, "/", 0, MS_PRIVATE | MS_REC, 0));
4746 fail_if(pivot_root(guest, point));
4847}
4948···121120122121 fail("unshare", unshare_errno);
123122 }
123123+124124+ // hide all mounts we do from the parent
125125+ fail_if(mount(0, "/", 0, MS_PRIVATE | MS_REC, 0));
124126125127 if (uid != 0) {
126128 spit("/proc/self/setgroups", "deny");
+4
pkgs/build-support/make-desktopitem/default.nix
···1212, mimeType ? null
1313, categories ? null
1414, startupNotify ? null
1515+, noDisplay ? null
1616+, prefersNonDefaultGPU ? null
1517, extraDesktopEntries ? { } # Extra key-value pairs to add to the [Desktop Entry] section. This may override other values
1618, extraEntries ? "" # Extra configuration. Will be appended to the end of the file and may thus contain extra sections
1719, fileValidation ? true # whether to validate resulting desktop file.
···3537 "MimeType" = nullableToString mimeType;
3638 "Categories" = nullableToString categories;
3739 "StartupNotify" = nullableToString startupNotify;
4040+ "NoDisplay" = nullableToString noDisplay;
4141+ "PrefersNonDefaultGPU" = nullableToString prefersNonDefaultGPU;
3842 } // extraDesktopEntries;
39434044 # Map all entries to a list of lines
···147147 mkdir -p $out/nix-support
148148 echo "cmakeFlags+=' -DCUDA_TOOLKIT_ROOT_DIR=$out'" >> $out/nix-support/setup-hook
149149150150+ # Set the host compiler to be used by nvcc for CMake-based projects:
151151+ # https://cmake.org/cmake/help/latest/module/FindCUDA.html#input-variables
152152+ echo "cmakeFlags+=' -DCUDA_HOST_COMPILER=${gcc}/bin'" >> $out/nix-support/setup-hook
153153+150154 # Move some libraries to the lib output so that programs that
151155 # depend on them don't pull in this entire monstrosity.
152156 mkdir -p $lib/lib
+22
pkgs/development/compilers/passerine/default.nix
···11+{ lib, fetchFromGitHub, rustPlatform }:
22+33+rustPlatform.buildRustPackage rec {
44+ pname = "passerine";
55+ version = "0.9.2";
66+77+ src = fetchFromGitHub {
88+ owner = "vrtbl";
99+ repo = "passerine";
1010+ rev = "dd8a6f5efc5dcb03d45b102f61cc8a50d46e8e98";
1111+ sha256 = "sha256-/QzqKLkxAVqvTY4Uft1qk7nJat6nozykB/4X1YGqu/I=";
1212+ };
1313+1414+ cargoSha256 = "sha256-8WiiDLIJ/abXELF8S+4s+BPA/Lr/rpKmC1NWPCLzQWA=";
1515+1616+ meta = with lib; {
1717+ description = "A small extensible programming language designed for concise expression with little code";
1818+ homepage = "https://github.com/vrtbl/passerine";
1919+ license = licenses.mit;
2020+ maintainers = with maintainers; [ siraben ];
2121+ };
2222+}
···159159 inherit lib config stdenv;
160160 }) mkDerivation;
161161162162- # Slated for removal in 21.11
163163- lib = if config.allowAliases or true then builtins.trace
164164- ( "Warning: `stdenv.lib` is deprecated and will be removed in the next release."
165165- + " Please use `lib` instead."
166166- + " For more information see https://github.com/NixOS/nixpkgs/issues/108938")
167167- lib else throw "`stdenv.lib` is a deprecated alias for `lib`";
168168-169162 inherit fetchurlBoot;
170163171164 inherit overrides;
+2-6
pkgs/tools/backup/borgmatic/default.nix
···2233python3Packages.buildPythonApplication rec {
44 pname = "borgmatic";
55- version = "1.5.12";
55+ version = "1.5.13";
6677 src = python3Packages.fetchPypi {
88 inherit pname version;
99- sha256 = "sha256-XLbBJvNRmH8W9SnOjF7zUbazRYFCMW6SEO2wKN/2VTY=";
99+ sha256 = "12390ffdg30ncc5k92pvagwbvnsh42xl35a3nagbskznyfd23mw3";
1010 };
11111212 checkInputs = with python3Packages; [ flexmock pytestCheckHook pytest-cov ];
13131414 # - test_borgmatic_version_matches_news_version
1515 # The file NEWS not available on the pypi source, and this test is useless
1616- # - test_collect_configuration_run_summary_logs_outputs_merged_json_results
1717- # Upstream fixed in the next version, see
1818- # https://github.com/witten/borgmatic/commit/ea6cd53067435365a96786b006aec391714501c4
1916 disabledTests = [
2017 "test_borgmatic_version_matches_news_version"
2121- "test_collect_configuration_run_summary_logs_outputs_merged_json_results"
2218 ];
23192420 propagatedBuildInputs = with python3Packages; [