···23- [ ] 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))
24- [ ] Tested compilation of all pkgs that depend on this change using `nix-shell -p nixpkgs-review --run "nixpkgs-review wip"`
25- [ ] Tested execution of all binary files (usually in `./result/bin/`)
26-- [21.11 Release Notes](./CONTRIBUTING.md#generating-2111-release-notes)
27 - [ ] (Package updates) Added a release notes entry if the change is major or breaking
28 - [ ] (Module updates) Added a release notes entry if the change is significant
29 - [ ] (Module addition) Added a release notes entry if adding a new NixOS module
···23- [ ] 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))
24- [ ] Tested compilation of all pkgs that depend on this change using `nix-shell -p nixpkgs-review --run "nixpkgs-review wip"`
25- [ ] Tested execution of all binary files (usually in `./result/bin/`)
26+- [21.11 Release Notes](https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md#generating-2111-release-notes)
27 - [ ] (Package updates) Added a release notes entry if the change is major or breaking
28 - [ ] (Module updates) Added a release notes entry if the change is significant
29 - [ ] (Module addition) Added a release notes entry if adding a new NixOS module
-3
doc/contributing/coding-conventions.chapter.md
···183184- Arguments should be listed in the order they are used, with the exception of `lib`, which always goes first.
185186-- 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.
187- `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.
188-189## Package naming {#sec-package-naming}
190191The 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.
···183184- Arguments should be listed in the order they are used, with the exception of `lib`, which always goes first.
185000186## Package naming {#sec-package-naming}
187188The 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.
···43void pivot_host(const gchar *guest) {
44 g_autofree gchar *point = g_build_filename(guest, "host", NULL);
45 fail_if(g_mkdir(point, 0755));
046 fail_if(pivot_root(guest, point));
47}
48···120121 fail("unshare", unshare_errno);
122 }
123+124+ // hide all mounts we do from the parent
125+ fail_if(mount(0, "/", 0, MS_PRIVATE | MS_REC, 0));
126127 if (uid != 0) {
128 spit("/proc/self/setgroups", "deny");
+4
pkgs/build-support/make-desktopitem/default.nix
···12, mimeType ? null
13, categories ? null
14, startupNotify ? null
0015, extraDesktopEntries ? { } # Extra key-value pairs to add to the [Desktop Entry] section. This may override other values
16, extraEntries ? "" # Extra configuration. Will be appended to the end of the file and may thus contain extra sections
17, fileValidation ? true # whether to validate resulting desktop file.
···35 "MimeType" = nullableToString mimeType;
36 "Categories" = nullableToString categories;
37 "StartupNotify" = nullableToString startupNotify;
0038 } // extraDesktopEntries;
3940 # Map all entries to a list of lines
···12, mimeType ? null
13, categories ? null
14, startupNotify ? null
15+, noDisplay ? null
16+, prefersNonDefaultGPU ? null
17, extraDesktopEntries ? { } # Extra key-value pairs to add to the [Desktop Entry] section. This may override other values
18, extraEntries ? "" # Extra configuration. Will be appended to the end of the file and may thus contain extra sections
19, fileValidation ? true # whether to validate resulting desktop file.
···37 "MimeType" = nullableToString mimeType;
38 "Categories" = nullableToString categories;
39 "StartupNotify" = nullableToString startupNotify;
40+ "NoDisplay" = nullableToString noDisplay;
41+ "PrefersNonDefaultGPU" = nullableToString prefersNonDefaultGPU;
42 } // extraDesktopEntries;
4344 # Map all entries to a list of lines
···147 mkdir -p $out/nix-support
148 echo "cmakeFlags+=' -DCUDA_TOOLKIT_ROOT_DIR=$out'" >> $out/nix-support/setup-hook
1490000150 # Move some libraries to the lib output so that programs that
151 # depend on them don't pull in this entire monstrosity.
152 mkdir -p $lib/lib
···147 mkdir -p $out/nix-support
148 echo "cmakeFlags+=' -DCUDA_TOOLKIT_ROOT_DIR=$out'" >> $out/nix-support/setup-hook
149150+ # Set the host compiler to be used by nvcc for CMake-based projects:
151+ # https://cmake.org/cmake/help/latest/module/FindCUDA.html#input-variables
152+ echo "cmakeFlags+=' -DCUDA_HOST_COMPILER=${gcc}/bin'" >> $out/nix-support/setup-hook
153+154 # Move some libraries to the lib output so that programs that
155 # depend on them don't pull in this entire monstrosity.
156 mkdir -p $lib/lib
+22
pkgs/development/compilers/passerine/default.nix
···0000000000000000000000
···1+{ lib, fetchFromGitHub, rustPlatform }:
2+3+rustPlatform.buildRustPackage rec {
4+ pname = "passerine";
5+ version = "0.9.2";
6+7+ src = fetchFromGitHub {
8+ owner = "vrtbl";
9+ repo = "passerine";
10+ rev = "dd8a6f5efc5dcb03d45b102f61cc8a50d46e8e98";
11+ sha256 = "sha256-/QzqKLkxAVqvTY4Uft1qk7nJat6nozykB/4X1YGqu/I=";
12+ };
13+14+ cargoSha256 = "sha256-8WiiDLIJ/abXELF8S+4s+BPA/Lr/rpKmC1NWPCLzQWA=";
15+16+ meta = with lib; {
17+ description = "A small extensible programming language designed for concise expression with little code";
18+ homepage = "https://github.com/vrtbl/passerine";
19+ license = licenses.mit;
20+ maintainers = with maintainers; [ siraben ];
21+ };
22+}
···159 inherit lib config stdenv;
160 }) mkDerivation;
161162- # Slated for removal in 21.11
163- lib = if config.allowAliases or true then builtins.trace
164- ( "Warning: `stdenv.lib` is deprecated and will be removed in the next release."
165- + " Please use `lib` instead."
166- + " For more information see https://github.com/NixOS/nixpkgs/issues/108938")
167- lib else throw "`stdenv.lib` is a deprecated alias for `lib`";
168-169 inherit fetchurlBoot;
170171 inherit overrides;