mirror of
https://github.com/NixOS/nix
synced 2025-07-07 01:51:47 +02:00
* New primop `readFile' to get the contents of a file as a string.
This commit is contained in:
parent
c370755583
commit
06f95dd07c
4 changed files with 23 additions and 0 deletions
1
tests/lang/eval-okay-readfile.exp
Normal file
1
tests/lang/eval-okay-readfile.exp
Normal file
|
@ -0,0 +1 @@
|
|||
Str("builtins.readFile ./eval-okay-readfile.nix\n",[])
|
1
tests/lang/eval-okay-readfile.nix
Normal file
1
tests/lang/eval-okay-readfile.nix
Normal file
|
@ -0,0 +1 @@
|
|||
builtins.readFile ./eval-okay-readfile.nix
|
Loading…
Add table
Add a link
Reference in a new issue