mirror of
https://github.com/NixOS/nix
synced 2025-07-10 04:43:53 +02:00
Add test for readFile keeping context
This commit is contained in:
parent
c66865dff1
commit
120ca245d1
4 changed files with 38 additions and 1 deletions
19
tests/readfile-context.nix
Normal file
19
tests/readfile-context.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
with import ./config.nix;
|
||||
|
||||
let
|
||||
|
||||
input = import ./simple.nix;
|
||||
|
||||
dependent = mkDerivation {
|
||||
name = "dependent";
|
||||
builder = ./readfile-context.builder.sh;
|
||||
input = "${input}/hello";
|
||||
};
|
||||
|
||||
readDependent = mkDerivation {
|
||||
name = "read-dependent";
|
||||
builder = ./readfile-context.builder.sh;
|
||||
input = builtins.readFile dependent;
|
||||
};
|
||||
|
||||
in readDependent
|
Loading…
Add table
Add a link
Reference in a new issue