mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-10 17:54:53 +01:00
This gives people some flexibility when they need a path type, and prevents a "combinatorial explosion" of various path stops. I've re-implemented our existing `path` and `pathInStore` types using `pathWith`. Our existing `package` type is potentially a candidate for similar treatment, but it's a little quirkier (there's some stuff with `builtins.hasContext` and `toDerivation` that I don't completely understand), and I didn't want to muddy this PR with that. As a happy side effect of this work, we get a new feature: the ability to create a type for paths *not* in the store. This is useful for when a module needs a path to a file, and wants to protect people from accidentally leaking that file into the nix store. |
||
|---|---|---|
| .. | ||
| activation-script.section.md | ||
| assertions.section.md | ||
| bootspec.chapter.md | ||
| building-parts.chapter.md | ||
| developing-the-test-driver.chapter.md | ||
| development.md | ||
| etc-overlay.section.md | ||
| freeform-modules.section.md | ||
| importing-modules.section.md | ||
| linking-nixos-tests-to-packages.section.md | ||
| meta-attributes.section.md | ||
| nixos-tests.chapter.md | ||
| non-switchable-systems.section.md | ||
| option-declarations.section.md | ||
| option-def.section.md | ||
| option-types.section.md | ||
| replace-modules.section.md | ||
| running-nixos-tests-interactively.section.md | ||
| running-nixos-tests.section.md | ||
| settings-options.section.md | ||
| sources.chapter.md | ||
| testing-installer.chapter.md | ||
| unit-handling.section.md | ||
| what-happens-during-a-system-switch.chapter.md | ||
| writing-documentation.chapter.md | ||
| writing-modules.chapter.md | ||
| writing-nixos-tests.section.md | ||