···2929 4. If needed you can also run `make menuconfig`:
30303131 ```ShellSession
3232- $ nix-env -i ncurses
3232+ $ nix-env -f "<nixpkgs>" -iA ncurses
3333 $ export NIX_CFLAGS_LINK=-lncurses
3434 $ make menuconfig ARCH=arch
3535 ```
+4-4
doc/contributing/submitting-changes.chapter.md
···4343 - nixpkgs:
44444545 - update pkg
4646- - `nix-env -i pkg-name -f <path to your local nixpkgs folder>`
4646+ - `nix-env -iA pkg-attribute-name -f <path to your local nixpkgs folder>`
4747 - add pkg
4848 - Make sure it’s in `pkgs/top-level/all-packages.nix`
4949- - `nix-env -i pkg-name -f <path to your local nixpkgs folder>`
4949+ - `nix-env -iA pkg-attribute-name -f <path to your local nixpkgs folder>`
5050 - _If you don’t want to install pkg in you profile_.
5151- - `nix-build -A pkg-attribute-name <path to your local nixpkgs folder>/default.nix` and check results in the folder `result`. It will appear in the same directory where you did `nix-build`.
5252- - If you did `nix-env -i pkg-name` you can do `nix-env -e pkg-name` to uninstall it from your system.
5151+ - `nix-build -A pkg-attribute-name <path to your local nixpkgs folder>` and check results in the folder `result`. It will appear in the same directory where you did `nix-build`.
5252+ - If you installed your package with `nix-env`, you can run `nix-env -e pkg-name` where `pkg-name` is as reported by `nix-env -q` to uninstall it from your system.
53535454 - NixOS and its modules:
5555 - You can add new module to your NixOS configuration file (usually it’s `/etc/nixos/configuration.nix`). And do `sudo nixos-rebuild test -I nixpkgs=<path to your local nixpkgs folder> --fast`.
+2-2
doc/languages-frameworks/emscripten.section.md
···15151616 If you want to work with `emcc`, `emconfigure` and `emmake` as you are used to from Ubuntu and similar distributions you can use these commands:
17171818- * `nix-env -i emscripten`
1818+ * `nix-env -f "<nixpkgs>" -iA emscripten`
1919 * `nix-shell -p emscripten`
20202121* **Declarative usage**:
22222323- This mode is far more power full since this makes use of `nix` for dependency management of emscripten libraries and targets by using the `mkDerivation` which is implemented by `pkgs.emscriptenStdenv` and `pkgs.buildEmscriptenPackage`. The source for the packages is in `pkgs/top-level/emscripten-packages.nix` and the abstraction behind it in `pkgs/development/em-modules/generic/default.nix`.
2323+ This mode is far more power full since this makes use of `nix` for dependency management of emscripten libraries and targets by using the `mkDerivation` which is implemented by `pkgs.emscriptenStdenv` and `pkgs.buildEmscriptenPackage`. The source for the packages is in `pkgs/top-level/emscripten-packages.nix` and the abstraction behind it in `pkgs/development/em-modules/generic/default.nix`. From the root of the nixpkgs repository:
2424 * build and install all packages:
2525 * `nix-env -iA emscriptenPackages`
2626
+1-4
doc/languages-frameworks/idris.section.md
···55The easiest way to get a working idris version is to install the `idris` attribute:
6677```ShellSession
88-$ # On NixOS
99-$ nix-env -i nixos.idris
1010-$ # On non-NixOS
1111-$ nix-env -i nixpkgs.idris
88+$ nix-env -f "<nixpkgs>" -iA idris
129```
13101411This however only provides the `prelude` and `base` libraries. To install idris with additional libraries, you can use the `idrisPackages.with-packages` function, e.g. in an overlay in `~/.config/nixpkgs/overlays/my-idris.nix`:
+2-10
doc/languages-frameworks/octave.section.md
···2424$ nix-build -A octavePackages.symbolic
2525```
26262727-When building Octave packages with `nix-build`, the `buildOctavePackage` function adds `octave-octaveVersion` to; the start of the package's name attribute.
2828-2929-This can be required when installing the package using `nix-env`:
3030-3131-```ShellSession
3232-$ nix-env -i octave-6.2.0-symbolic
3333-```
3434-3535-Although, you can also install it using the attribute name:
2727+To install it into your user profile, run this command from the root of the repository:
36283729```ShellSession
3838-$ nix-env -i -A octavePackages.symbolic
3030+$ nix-env -f. -iA octavePackages.symbolic
3931```
40324133You can build Octave with packages by using the `withPackages` passed-through function.
+4-8
doc/languages-frameworks/perl.section.md
···5858$ nix-build -A perlPackages.ClassC3
5959```
60606161-`buildPerlPackage` adds `perl-` to the start of the name attribute, so the package above is actually called `perl-Class-C3-0.21`. So to install it, you can say:
6262-6363-```ShellSession
6464-$ nix-env -i perl-Class-C3
6565-```
6666-6767-(Of course you can also install using the attribute name: `nix-env -i -A perlPackages.ClassC3`.)
6161+To install it with `nix-env` instead: `nix-env -f. -iA perlPackages.ClassC3`.
68626963So what does `buildPerlPackage` do? It does the following:
7064···135129Nix expressions for Perl packages can be generated (almost) automatically from CPAN. This is done by the program `nix-generate-from-cpan`, which can be installed as follows:
136130137131```ShellSession
138138-$ nix-env -i nix-generate-from-cpan
132132+$ nix-env -f "<nixpkgs>" -iA nix-generate-from-cpan
139133```
134134+135135+Substitute `<nixpkgs>` by the path of a nixpkgs clone to use the latest version.
140136141137This program takes a Perl module name, looks it up on CPAN, fetches and unpacks the corresponding package, and prints a Nix expression on standard output. For example:
142138