1
0
Fork 0
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:
Carlos Marques 2023-07-20 16:59:43 +01:00 committed by GitHub
parent b5a568c57e
commit f281829318
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"
```