Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nix
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 629b9b004936
Choose a base ref
...
head repository: NixOS/nix
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dfe1fdf9e84b
Choose a head ref
  • 5 commits
  • 1 file changed
  • 2 contributors

Commits on Oct 21, 2019

  1. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    grahamc Graham Christensen
    Copy the full SHA
    d8730fb View commit details
  2. Revert "Document import <path> syntax"

    This reverts commit d8730fb.
    ersinakinci committed Oct 21, 2019
    Copy the full SHA
    9be7787 View commit details
  3. Copy the full SHA
    b7a9362 View commit details
  4. Tweak path hint

    ersinakinci committed Oct 21, 2019
    Copy the full SHA
    f107a27 View commit details

Commits on Oct 23, 2019

  1. Merge pull request #3159 from earksiinni/docs-import-brackets

    Document import <path> syntax
    edolstra authored Oct 23, 2019
    Copy the full SHA
    dfe1fdf View commit details
Showing with 5 additions and 0 deletions.
  1. +5 −0 doc/manual/expressions/builtins.xml
5 changes: 5 additions & 0 deletions doc/manual/expressions/builtins.xml
Original file line number Diff line number Diff line change
@@ -746,6 +746,11 @@ builtins.genList (x: x * x) 5
separate file, and use it from Nix expressions in other
files.</para>

<note><para>Unlike some languages, <function>import</function> is a regular
function in Nix. Paths using the angle bracket syntax (e.g., <function>
import</function> <replaceable>&lt;foo&gt;</replaceable>) are normal path
values (see <xref linkend='ssec-values' />).</para></note>

<para>A Nix expression loaded by <function>import</function> must
not contain any <emphasis>free variables</emphasis> (identifiers
that are not defined in the Nix expression itself and are not