diff options
author | Alyssa Ross <hi@alyssa.is> | 2019-06-19 19:22:30 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2019-06-19 19:22:30 +0000 |
commit | 6c3ffdc228a9808c65a0205cd1fd404578d02dee (patch) | |
tree | c5998bfbac1bc92dace314e051164f830976d661 /nixpkgs/doc/functions | |
parent | ef93931efff0323fd13c4270415b578c73b5ef35 (diff) | |
parent | 83ba5afcc9682b52b39a9a958f730b966cc369c5 (diff) | |
download | nixlib-6c3ffdc228a9808c65a0205cd1fd404578d02dee.tar nixlib-6c3ffdc228a9808c65a0205cd1fd404578d02dee.tar.gz nixlib-6c3ffdc228a9808c65a0205cd1fd404578d02dee.tar.bz2 nixlib-6c3ffdc228a9808c65a0205cd1fd404578d02dee.tar.lz nixlib-6c3ffdc228a9808c65a0205cd1fd404578d02dee.tar.xz nixlib-6c3ffdc228a9808c65a0205cd1fd404578d02dee.tar.zst nixlib-6c3ffdc228a9808c65a0205cd1fd404578d02dee.zip |
Merge commit '83ba5afcc9682b52b39a9a958f730b966cc369c5'
Diffstat (limited to 'nixpkgs/doc/functions')
-rw-r--r-- | nixpkgs/doc/functions/appimagetools.xml | 2 | ||||
-rw-r--r-- | nixpkgs/doc/functions/dockertools.xml | 20 | ||||
-rw-r--r-- | nixpkgs/doc/functions/prefer-remote-fetch.xml | 18 | ||||
-rw-r--r-- | nixpkgs/doc/functions/trivial-builders.xml | 26 |
4 files changed, 33 insertions, 33 deletions
diff --git a/nixpkgs/doc/functions/appimagetools.xml b/nixpkgs/doc/functions/appimagetools.xml index 4205c6da3851..e6dbc22f48dd 100644 --- a/nixpkgs/doc/functions/appimagetools.xml +++ b/nixpkgs/doc/functions/appimagetools.xml @@ -52,7 +52,7 @@ spot sensor temperature 0.000000, unit celsius, color scheme 0, calibration: off <prompt>$ </prompt>file -k type2.AppImage type2.AppImage: ELF 64-bit LSB executable, x86-64, version 1 (SYSV) (Lepton 3.x), scale 232-60668, spot sensor temperature -4.187500, color scheme 15, show scale bar, calibration: offset -0.000000, slope 0.000000 (Lepton 2.x), scale 4111-45000, spot sensor temperature 412442.250000, color scheme 3, minimum point enabled, calibration: offset -75402534979642766821519867692934234112.000000, slope 5815371847733706829839455140374904832.000000, dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.18, BuildID[sha1]=79dcc4e55a61c293c5e19edbd8d65b202842579f, stripped\012- data - </screen> +</screen> <para> Note how the type 1 AppImage is described as an <literal>ISO 9660 CD-ROM diff --git a/nixpkgs/doc/functions/dockertools.xml b/nixpkgs/doc/functions/dockertools.xml index e95ce1979ded..3e9281557d51 100644 --- a/nixpkgs/doc/functions/dockertools.xml +++ b/nixpkgs/doc/functions/dockertools.xml @@ -480,9 +480,9 @@ pullImage { <literal>nix-prefetch-docker</literal> command can be used to get required image parameters: -<programlisting> -$ nix run nixpkgs.nix-prefetch-docker -c nix-prefetch-docker --image-name mysql --image-tag 5 -</programlisting> +<screen> +<prompt>$ </prompt>nix run nixpkgs.nix-prefetch-docker -c nix-prefetch-docker --image-name mysql --image-tag 5 +</screen> Since a given <varname>imageName</varname> may transparently refer to a manifest list of images which support multiple architectures and/or @@ -491,17 +491,17 @@ $ nix run nixpkgs.nix-prefetch-docker -c nix-prefetch-docker --image-name mysql By default it will match the OS and architecture of the host the command is run on. -<programlisting> -$ nix-prefetch-docker --image-name mysql --image-tag 5 --arch x86_64 --os linux -</programlisting> +<screen> +<prompt>$ </prompt>nix-prefetch-docker --image-name mysql --image-tag 5 --arch x86_64 --os linux +</screen> Desired image name and tag can be set using <option>--final-image-name</option> and <option>--final-image-tag</option> arguments: -<programlisting> -$ nix-prefetch-docker --image-name mysql --image-tag 5 --final-image-name eu.gcr.io/my-project/mysql --final-image-tag prod -</programlisting> +<screen> +<prompt>$ </prompt>nix-prefetch-docker --image-name mysql --image-tag 5 --final-image-name eu.gcr.io/my-project/mysql --final-image-tag prod +</screen> </para> </section> @@ -537,7 +537,7 @@ exportImage { name = someLayeredImage.name; } - </programlisting> +</programlisting> </example> <para> diff --git a/nixpkgs/doc/functions/prefer-remote-fetch.xml b/nixpkgs/doc/functions/prefer-remote-fetch.xml index 2ccad9218062..3e43fd28ade8 100644 --- a/nixpkgs/doc/functions/prefer-remote-fetch.xml +++ b/nixpkgs/doc/functions/prefer-remote-fetch.xml @@ -10,16 +10,16 @@ upload while the builder can fetch faster directly from the source. To use it, put the following snippet as a new overlay: <programlisting> - self: super: - (super.prefer-remote-fetch self super) - </programlisting> +self: super: + (super.prefer-remote-fetch self super) +</programlisting> A full configuration example for that sets the overlay up for your own account, could look like this -<programlisting> - $ mkdir ~/.config/nixpkgs/overlays/ - $ cat > ~/.config/nixpkgs/overlays/prefer-remote-fetch.nix <<EOF - self: super: super.prefer-remote-fetch self super - EOF - </programlisting> +<screen> +<prompt>$ </prompt>mkdir ~/.config/nixpkgs/overlays/ +<prompt>$ </prompt>cat > ~/.config/nixpkgs/overlays/prefer-remote-fetch.nix <<EOF + self: super: super.prefer-remote-fetch self super +EOF +</screen> </para> </section> diff --git a/nixpkgs/doc/functions/trivial-builders.xml b/nixpkgs/doc/functions/trivial-builders.xml index 1fd92ecfe262..0211a4f31728 100644 --- a/nixpkgs/doc/functions/trivial-builders.xml +++ b/nixpkgs/doc/functions/trivial-builders.xml @@ -35,25 +35,25 @@ An example of using <literal>runCommand</literal> is provided below. </para> <programlisting> - (import <nixpkgs> {}).runCommand "my-example" {} '' - echo My example command is running +(import <nixpkgs> {}).runCommand "my-example" {} '' + echo My example command is running - mkdir $out + mkdir $out - echo I can write data to the Nix store > $out/message + echo I can write data to the Nix store > $out/message - echo I can also run basic commands like: + echo I can also run basic commands like: - echo ls - ls + echo ls + ls - echo whoami - whoami + echo whoami + whoami - echo date - date - '' - </programlisting> + echo date + date +'' +</programlisting> </listitem> </varlistentry> <varlistentry> |