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: f5ee72eef6d7
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: c9b329cdf9fd
Choose a head ref
  • 2 commits
  • 34 files changed
  • 1 contributor

Commits on Sep 24, 2020

  1. doc: Improve code listings

    By adding prompts and removing unnecessary indentation.
    
    (cherry picked from commit e1af376)
    jtojnar committed Sep 24, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    jtojnar Jan Tojnar
    Copy the full SHA
    cc870b1 View commit details
  2. nixos/doc: Improve code listings

    By adding prompts and replaceables and removing unnecessary indentation.
    
    (cherry picked from commit e6ce041)
    jtojnar committed Sep 24, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    jtojnar Jan Tojnar
    Copy the full SHA
    c9b329c View commit details
Showing with 267 additions and 255 deletions.
  1. +6 −6 doc/builders/images/dockertools.xml
  2. +1 −2 doc/builders/images/ocitools.xml
  3. +4 −4 doc/builders/packages/citrix.xml
  4. +32 −18 doc/builders/packages/urxvt.xml
  5. +6 −6 doc/contributing/submitting-changes.xml
  6. +3 −3 doc/languages-frameworks/beam.xml
  7. +99 −99 doc/languages-frameworks/perl.xml
  8. +1 −1 doc/languages-frameworks/qt.xml
  9. +12 −13 doc/languages-frameworks/ruby.xml
  10. +5 −5 doc/languages-frameworks/texlive.xml
  11. +1 −1 doc/stdenv/multiple-output.xml
  12. +4 −4 doc/using/configuration.xml
  13. +5 −5 doc/using/overlays.xml
  14. +16 −16 nixos/doc/manual/administration/imperative-containers.xml
  15. +1 −1 nixos/doc/manual/administration/maintenance-mode.xml
  16. +2 −2 nixos/doc/manual/administration/network-problems.xml
  17. +3 −3 nixos/doc/manual/administration/rebooting.xml
  18. +3 −3 nixos/doc/manual/administration/rollback.xml
  19. +3 −3 nixos/doc/manual/administration/service-mgmt.xml
  20. +1 −1 nixos/doc/manual/administration/user-sessions.xml
  21. +1 −1 nixos/doc/manual/configuration/adding-custom-packages.xml
  22. +8 −8 nixos/doc/manual/configuration/linux-kernel.xml
  23. +10 −10 nixos/doc/manual/configuration/luks-file-systems.xml
  24. +4 −4 nixos/doc/manual/configuration/user-mgmt.xml
  25. +1 −1 nixos/doc/manual/configuration/x-windows.xml
  26. +1 −1 nixos/doc/manual/development/meta-attributes.xml
  27. +2 −2 nixos/doc/manual/development/writing-documentation.xml
  28. +7 −7 nixos/doc/manual/installation/installing-behind-a-proxy.xml
  29. +8 −8 nixos/doc/manual/installation/installing-from-other-distro.xml
  30. +6 −6 nixos/doc/manual/installation/upgrading.xml
  31. +2 −2 nixos/doc/manual/man-nixos-enter.xml
  32. +2 −2 nixos/doc/manual/man-nixos-version.xml
  33. +4 −4 nixos/modules/services/backup/borgbackup.xml
  34. +3 −3 nixos/modules/system/activation/top-level.nix
12 changes: 6 additions & 6 deletions doc/builders/images/dockertools.xml
Original file line number Diff line number Diff line change
@@ -132,11 +132,11 @@ buildImage {
<para>
By default <function>buildImage</function> will use a static date of one second past the UNIX Epoch. This allows <function>buildImage</function> to produce binary reproducible images. When listing images with <command>docker images</command>, the newly created images will be listed like this:
</para>
<screen><![CDATA[
$ docker images
<screen>
<prompt>$ </prompt>docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
hello latest 08c791c7846e 48 years ago 25.2MB
]]></screen>
</screen>
<para>
You can break binary reproducibility but have a sorted, meaningful <literal>CREATED</literal> column by setting <literal>created</literal> to <literal>now</literal>.
</para>
@@ -152,11 +152,11 @@ pkgs.dockerTools.buildImage {
]]></programlisting>
<para>
and now the Docker CLI will display a reasonable date and sort the images as expected:
<screen><![CDATA[
$ docker images
<screen>
<prompt>$ </prompt>docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
hello latest de2bf4786de6 About a minute ago 25.2MB
]]></screen>
</screen>
however, the produced images will not be binary reproducible.
</para>
</example>
3 changes: 1 addition & 2 deletions doc/builders/images/ocitools.xml
Original file line number Diff line number Diff line change
@@ -38,8 +38,7 @@ buildContainer {

readonly = false; <co xml:id='ex-ociTools-buildContainer-3' />
}

</programlisting>
</programlisting>
<calloutlist>
<callout arearefs='ex-ociTools-buildContainer-1'>
<para>
8 changes: 4 additions & 4 deletions doc/builders/packages/citrix.xml
Original file line number Diff line number Diff line change
@@ -22,10 +22,10 @@
</para>
<para>
In order to set this up, you first have to <link xlink:href="https://its.uiowa.edu/support/article/102186">download the <literal>.cr</literal> file from the Netscaler Gateway</link>. After that you can configure the <command>selfservice</command> like this:
<screen>
<prompt>$ </prompt>storebrowse -C ~/Downloads/receiverconfig.cr
<prompt>$ </prompt>selfservice
</screen>
<screen>
<prompt>$ </prompt>storebrowse -C ~/Downloads/receiverconfig.cr
<prompt>$ </prompt>selfservice
</screen>
</para>
</section>

50 changes: 32 additions & 18 deletions doc/builders/packages/urxvt.xml
Original file line number Diff line number Diff line change
@@ -18,10 +18,13 @@
includes all available plugins. To make use of this functionality, use an
overlay or directly install an expression that overrides its configuration,
such as
<programlisting>rxvt-unicode.override { configure = { availablePlugins, ... }: {
<programlisting>
rxvt-unicode.override {
configure = { availablePlugins, ... }: {
plugins = with availablePlugins; [ perls resize-font vtwheel ];
}
}</programlisting>
};
}
</programlisting>
If the <literal>configure</literal> function returns an attrset without the
<literal>plugins</literal> attribute, <literal>availablePlugins</literal>
will be used automatically.
@@ -30,18 +33,22 @@
<para>
In order to add plugins but also keep all default plugins installed, it is
possible to use the following method:
<programlisting>rxvt-unicode.override { configure = { availablePlugins, ... }: {
plugins = (builtins.attrValues availablePlugins) ++ [ custom-plugin ];
};
}</programlisting>
<programlisting>
rxvt-unicode.override {
configure = { availablePlugins, ... }: {
plugins = (builtins.attrValues availablePlugins) ++ [ custom-plugin ];
};
}
</programlisting>
</para>

<para>
To get a list of all the plugins available, open the Nix REPL and run
<programlisting>$ nix repl
<screen>
<prompt>$ </prompt>nix repl
:l &lt;nixpkgs&gt;
map (p: p.name) pkgs.rxvt-unicode.plugins
</programlisting>
</screen>
Alternatively, if your shell is bash or zsh and have completion enabled,
simply type <literal>nixpkgs.rxvt-unicode.plugins.&lt;tab&gt;</literal>.
</para>
@@ -53,18 +60,24 @@ map (p: p.name) pkgs.rxvt-unicode.plugins
<literal>extraDeps</literal> can be used, for example, to provide
<literal>xsel</literal> (a clipboard manager) to the clipboard plugin,
without installing it globally:
<programlisting>rxvt-unicode.override { configure = { availablePlugins, ... }: {
pluginsDeps = [ xsel ];
}
}</programlisting>
<programlisting>
rxvt-unicode.override {
configure = { availablePlugins, ... }: {
pluginsDeps = [ xsel ];
};
}
</programlisting>

<literal>perlDeps</literal> is a handy way to provide Perl packages to
your custom plugins (in <literal>$HOME/.urxvt/ext</literal>). For example,
if you need <literal>AnyEvent</literal> you can do:
<programlisting>rxvt-unicode.override { configure = { availablePlugins, ... }: {
perlDeps = with perlPackages; [ AnyEvent ];
}
}</programlisting>
<programlisting>
rxvt-unicode.override {
configure = { availablePlugins, ... }: {
perlDeps = with perlPackages; [ AnyEvent ];
};
}
</programlisting>
</para>

</section>
@@ -90,7 +103,8 @@ map (p: p.name) pkgs.rxvt-unicode.plugins
<para>
If the plugin is itself a perl package that needs to be imported from
other plugins or scripts, add the following passthrough:
<programlisting>passthru.perlPackages = [ "self" ];
<programlisting>
passthru.perlPackages = [ "self" ];
</programlisting>
This will make the urxvt wrapper pick up the dependency and set up the perl
path accordingly.
12 changes: 6 additions & 6 deletions doc/contributing/submitting-changes.xml
Original file line number Diff line number Diff line change
@@ -209,12 +209,12 @@ Additional information.
</para>

<programlisting>
(fetchpatch {
name = "CVE-2019-11068.patch";
url = "https://gitlab.gnome.org/GNOME/libxslt/commit/e03553605b45c88f0b4b2980adfbbb8f6fca2fd6.patch";
sha256 = "0pkpb4837km15zgg6h57bncp66d5lwrlvkr73h0lanywq7zrwhj8";
})
</programlisting>
(fetchpatch {
name = "CVE-2019-11068.patch";
url = "https://gitlab.gnome.org/GNOME/libxslt/commit/e03553605b45c88f0b4b2980adfbbb8f6fca2fd6.patch";
sha256 = "0pkpb4837km15zgg6h57bncp66d5lwrlvkr73h0lanywq7zrwhj8";
})
</programlisting>

<para>
If a security fix applies to both master and a stable release then, similar to regular changes, they are preferably delivered via master first and cherry-picked to the release branch.
6 changes: 3 additions & 3 deletions doc/languages-frameworks/beam.xml
Original file line number Diff line number Diff line change
@@ -72,9 +72,9 @@
To install any of those builders into your profile, refer to them by their attribute path <literal>beamPackages.rebar3</literal>:
</para>

<screen>
<prompt>$ </prompt>nix-env -f &quot;&lt;nixpkgs&gt;&quot; -iA beamPackages.rebar3
</screen>
<screen>
<prompt>$ </prompt>nix-env -f &quot;&lt;nixpkgs&gt;&quot; -iA beamPackages.rebar3
</screen>
</section>

<section xml:id="packaging-beam-applications">
Loading