mirror of
https://github.com/NixOS/nix.dev.git
synced 2024-10-18 14:32:43 -04:00
fix mismatching file name in example (#655)
This commit is contained in:
parent
b5a568c57e
commit
f281829318
|
@ -1687,7 +1687,7 @@ pkgs.lib.strings.removePrefix "no " "no true scotsman"
|
|||
To make this function produce a result, you can write it to a file (e.g. `file.nix`) and pass it an argument through `nix-instantiate`:
|
||||
|
||||
```shell-session
|
||||
$ nix-instantiate --eval test.nix --arg pkgs 'import <nixpkgs> {}'
|
||||
$ nix-instantiate --eval file.nix --arg pkgs 'import <nixpkgs> {}'
|
||||
"true scotsman"
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue