aboutsummaryrefslogtreecommitdiff
path: root/tests/readfile-context.nix
blob: 600036a946751951c0a9a4b8458854f90c442c4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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