home-manager/docs
Andrew Marshall cc58d31953
flake: Expose tests to allow running purely (#3412)
* flake: Expose tests to allow running purely

The existing way to run tests with `nix-shell` relies on impure usage of
`<nixpkgs>`. This can lead to failures when the local nixpkgs is
incompatible with the locked one. I.e., where CI is passing but a
contributor may experience a failure.

So, expose tests as `devShells.tests` to use the locked nixpkgs and
allow easy invocation via `nix develop`.

* tests: Remove impure path

With Nix 2.10+ and pure evaluation mode e.g.

```
nix run nixpkgs/nixos-unstable#nixVersions.nix_2_10 -- develop -i .#tests.zplug-modules
```

this test would fail with:

> error: the path '~/.customZplugHome' can not be resolved in pure mode

Since the test only cares that it is a path, rather than anything about
its contents, use a dummy empty directory.
2022-11-27 01:37:24 +01:00
..
release-notes Switch master branch version to 23.05 2022-11-24 23:13:38 +01:00
contributing.adoc flake: Expose tests to allow running purely (#3412) 2022-11-27 01:37:24 +01:00
default.nix docs: bump nmd 2022-10-20 08:47:36 +02:00
faq.adoc docs: use $ prompts for nix-channel commands 2022-06-18 20:59:51 +02:00
installation.adoc docs: replace use of # by $ sudo 2022-09-09 23:34:29 +02:00
man-configuration.xml docs: rename "doc" directory to "docs" 2021-08-17 19:35:11 +02:00
man-home-manager.xml home-manager: document the --version command option 2022-01-02 08:33:32 +01:00
man-pages.xml docs: update copyright year 2022-06-01 21:42:55 +02:00
manual.xml docs: replace use of # by $ sudo 2022-09-09 23:34:29 +02:00
nix-flakes.adoc docs: explain how to enable flakes on NixOS 2022-09-29 12:15:38 +02:00
usage.adoc docs: section how to update system 2022-02-17 22:57:52 +01:00
writing-modules.adoc lib: add two new gvariant types 2022-09-29 13:05:51 +02:00