diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2019-06-17 13:25:50 +0200 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2019-06-17 13:25:50 +0200 |
commit | a3f2131eb69c57570a41d036f395df9252c39b8b (patch) | |
tree | 881b6c92c7d70ee63e37e0416a3bc9d1ec6fd87b /nixos/doc/manual/configuration/adding-custom-packages.xml | |
parent | 3c14bda7f5a065d3d290399db2ef15457af3906b (diff) | |
download | nixpkgs-a3f2131eb69c57570a41d036f395df9252c39b8b.tar nixpkgs-a3f2131eb69c57570a41d036f395df9252c39b8b.tar.gz nixpkgs-a3f2131eb69c57570a41d036f395df9252c39b8b.tar.bz2 nixpkgs-a3f2131eb69c57570a41d036f395df9252c39b8b.tar.lz nixpkgs-a3f2131eb69c57570a41d036f395df9252c39b8b.tar.xz nixpkgs-a3f2131eb69c57570a41d036f395df9252c39b8b.tar.zst nixpkgs-a3f2131eb69c57570a41d036f395df9252c39b8b.zip |
doc: Use prompt more often
Diffstat (limited to 'nixos/doc/manual/configuration/adding-custom-packages.xml')
-rw-r--r-- | nixos/doc/manual/configuration/adding-custom-packages.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/doc/manual/configuration/adding-custom-packages.xml b/nixos/doc/manual/configuration/adding-custom-packages.xml index cdcfa10b820..182641055e4 100644 --- a/nixos/doc/manual/configuration/adding-custom-packages.xml +++ b/nixos/doc/manual/configuration/adding-custom-packages.xml @@ -14,8 +14,8 @@ xlink:href="http://nixos.org/nixpkgs/manual">Nixpkgs manual</link>. In short, you clone Nixpkgs: <screen> -$ git clone https://github.com/NixOS/nixpkgs -$ cd nixpkgs +<prompt>$ </prompt>git clone https://github.com/NixOS/nixpkgs +<prompt>$ </prompt>cd nixpkgs </screen> Then you write and test the package as described in the Nixpkgs manual. Finally, you add it to <literal>environment.systemPackages</literal>, e.g. @@ -65,8 +65,8 @@ stdenv.mkDerivation rec { </programlisting> This allows testing the package easily: <screen> -$ nix-build my-hello.nix -$ ./result/bin/hello +<prompt>$ </prompt>nix-build my-hello.nix +<prompt>$ </prompt>./result/bin/hello Hello, world! </screen> </para> |