···3737 * Not start with the package name.
3838 * Not have a period at the end.
3939* `meta.license` must be set and fit the upstream license.
4040- * If there is no upstream license, `meta.license` should default to `stdenv.lib.licenses.unfree`.
4040+ * If there is no upstream license, `meta.license` should default to `lib.licenses.unfree`.
4141* `meta.maintainers` must be set.
42424343See the nixpkgs manual for more details on [standard meta-attributes](https://nixos.org/nixpkgs/manual/#sec-standard-meta-attributes) and on how to [submit changes to nixpkgs](https://nixos.org/nixpkgs/manual/#chap-submitting-changes).
···11<chapter xmlns="http://docbook.org/ns/docbook"
22 xmlns:xlink="http://www.w3.org/1999/xlink"
33 xml:id="chap-contributing">
44- <title>Contributing to this documentation</title>
44+ <title>Contributing to this manual</title>
55 <para>
66 The DocBook sources of NixOS' manual are in the <filename
77xlink:href="https://github.com/NixOS/nixpkgs/tree/master/nixos/doc/manual">
+5-1
nixos/doc/manual/preface.xml
···2121 xlink:href="https://discourse.nixos.org">Discourse</literal> or
2222 on the <link
2323 xlink:href="irc://irc.freenode.net/#nixos">
2424- <literal>#nixos</literal> channel on Freenode</link>. Bugs should be
2424+ <literal>#nixos</literal> channel on Freenode</link>, or
2525+ consider
2626+ <link
2727+ xlink:href="#chap-contributing">
2828+ contributing to this manual</link>. Bugs should be
2529 reported in
2630 <link
2731 xlink:href="https://github.com/NixOS/nixpkgs/issues">NixOS’
+1
nixos/modules/i18n/input-method/default.nix
···4242 <itemizedlist>
4343 <listitem><para>ibus: The intelligent input bus, extra input engines can be added using <literal>i18n.inputMethod.ibus.engines</literal>.</para></listitem>
4444 <listitem><para>fcitx: A customizable lightweight input method, extra input engines can be added using <literal>i18n.inputMethod.fcitx.engines</literal>.</para></listitem>
4545+ <listitem><para>fcitx5: The next generation of fcitx, addons (including engines, dictionaries, skins) can be added using <literal>i18n.inputMethod.fcitx5.addons</literal>.</para></listitem>
4546 <listitem><para>nabi: A Korean input method based on XIM. Nabi doesn't support Qt 5.</para></listitem>
4647 <listitem><para>uim: The universal input method, is a library with a XIM bridge. uim mainly support Chinese, Japanese and Korean.</para></listitem>
4748 <listitem><para>hime: An extremely easy-to-use input method framework.</para></listitem>
+1-1
nixos/tests/usbguard.nix
···11import ./make-test-python.nix ({ pkgs, ... }: {
22 name = "usbguard";
33- meta = with pkgs.stdenv.lib.maintainers; {
33+ meta = with pkgs.lib.maintainers; {
44 maintainers = [ tnias ];
55 };
66
+2-2
pkgs/applications/graphics/hdr-plus/default.nix
···11-{ stdenv, fetchFromGitHub, fetchpatch
11+{ lib, stdenv, fetchFromGitHub, fetchpatch
22, cmake, halide
33, libpng, libjpeg, libtiff, libraw
44}:
···3232 done
3333 '';
34343535- meta = with stdenv.lib; {
3535+ meta = with lib; {
3636 description = "Burst photography pipeline based on Google's HDR+";
3737 homepage = "https://www.timothybrooks.com/tech/hdr-plus/";
3838 license = licenses.mit;
···3838 passthru.updateScript = writeScript "${pname}-updater" ''
3939 #!${stdenv.shell}
4040 set -eu -o pipefail
4141- PATH=${stdenv.lib.makeBinPath [curl pup common-updater-scripts]}:$PATH
4141+ PATH=${lib.makeBinPath [curl pup common-updater-scripts]}:$PATH
4242 latestVersion="$(curl -sS https://www.rescuetime.com/release-notes/linux | pup '.release:first-of-type h2 strong text{}' | tr -d '\n')"
43434444- for platform in ${stdenv.lib.concatStringsSep " " meta.platforms}; do
4444+ for platform in ${lib.concatStringsSep " " meta.platforms}; do
4545 # The script will not perform an update when the version attribute is up to date from previous platform run
4646 # We need to clear it before each run
4747 update-source-version ${pname} 0 $(yes 0 | head -64 | tr -d "\n") --system=$platform
···11# Adaptation of the MIT-licensed work on `sbt2nix` done by Charles O'Farrell
2233-{ fetchurl, stdenv }:
33+{ lib, fetchurl, stdenv }:
44let
55 defaultRepos = [
66 "https://repo1.maven.org/maven2"
···3636# if repos is empty, then url or urls must be specified.
3737assert (repos != []) || (url != "") || (urls != []);
38383939-4039let
4140 name_ =
4242- with stdenv.lib; concatStrings [
4343- (replaceChars ["."] ["_"] groupId) "_"
4444- (replaceChars ["."] ["_"] artifactId) "-"
4141+ lib.concatStrings [
4242+ (lib.replaceChars ["."] ["_"] groupId) "_"
4343+ (lib.replaceChars ["."] ["_"] artifactId) "-"
4544 version
4645 ];
4746 mkJarUrl = repoUrl:
4848- with stdenv.lib; concatStringsSep "/" [
4949- (removeSuffix "/" repoUrl)
5050- (replaceChars ["."] ["/"] groupId)
4747+ lib.concatStringsSep "/" [
4848+ (lib.removeSuffix "/" repoUrl)
4949+ (lib.replaceChars ["."] ["/"] groupId)
5150 artifactId
5251 version
5353- "${artifactId}-${version}${optionalString (!isNull classifier) "-${classifier}"}.jar"
5252+ "${artifactId}-${version}${lib.optionalString (!isNull classifier) "-${classifier}"}.jar"
5453 ];
5554 urls_ =
5655 if url != "" then [url]
+4-4
pkgs/build-support/icon-conv-tools/default.nix
···11-{ stdenv, icoutils }:
11+{ lib, stdenv, icoutils }:
2233stdenv.mkDerivation {
44 name = "icon-conv-tools-0.0.0";
···2323 dontPatchELF = true;
2424 dontStrip = true;
25252626- meta = {
2626+ meta = with lib; {
2727 description = "Tools for icon conversion specific to nix package manager";
2828- maintainers = with stdenv.lib.maintainers; [ jraygauthier ];
2929- platforms = with stdenv.lib.platforms; linux;
2828+ maintainers = with maintainers; [ jraygauthier ];
2929+ platforms = platforms.linux;
3030 };
3131}
+2-2
pkgs/build-support/libredirect/default.nix
···4646 )
4747 '';
48484949- meta = {
5050- platforms = stdenv.lib.platforms.unix;
4949+ meta = with lib; {
5050+ platforms = platforms.unix;
5151 description = "An LD_PRELOAD library to intercept and rewrite the paths in glibc calls";
5252 longDescription = ''
5353 libredirect is an LD_PRELOAD library to intercept and rewrite the paths in
···1515 # source-highlight uses it's own binary to generate documentation.
1616 # During cross-compilation, that binary was built for the target
1717 # platform architecture, so it can't run on the build host.
1818- patchPhase = stdenv.lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
1818+ patchPhase = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
1919 substituteInPlace Makefile.in --replace "src doc tests" "src tests"
2020 '';
2121