Add a rule to .gitignore to exclude .direnv, the name of the temporary
directory created by direnv, from the source tree.
Commit f0160baa7a (".envrc: init for new shell.nix") is introduced to
the "master" branch, invoking an official .envrc direnv configuration
when a developer enters the Nixpkgs source directory.
When checking out the stable-release branches, the rule to exclude the
temporary directory .direnv got lost from .gitignore, and the temporary
directory became visible to source control, creating a risk of polluting
the source tree.
This patch backports the .gitignore rule against .direnv to the stable
release branch and eliminates such risk of pollution.
Even though the necessity of .envrc inside the source tree is under
debate, the opinions from both sides support the non-negligible use of
direct as a developer tool by Nixpkgs contributors, and it would be
beneficial to have a .gitignore rule to exclude the corresponding
temporary files whether we have an official .envrc or not.
Partially backport f0160baa7a
so that it matches only in the repository root.
Co-authored-by: Sandro Jäckel <sandro.jaeckel@gmail.com>
Co-authored-by: Milan Hauth <milahu@gmail.com>
Also:
- It's now installable by doing "nix-env -i nix-generate-from-cpan".
- It maps dependencies to the correct attribute (e.g. HTML::HeadParser
is mapped to HTMLParser).
- It automatically selects buildPerlPackage or buildPerlModule.
- It's documented in the manual.