aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/dyn-drv/old-daemon-error-hack.nix
blob: c9d4a62d4f4bcce03658ca80e8111f9a8dcf4e3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
with import ./config.nix;

# A simple content-addressed derivation.
# The derivation can be arbitrarily modified by passing a different `seed`,
# but the output will always be the same
rec {
  stub = mkDerivation {
    name = "stub";
    buildCommand = ''
      echo stub > $out
    '';
  };
  wrapper = mkDerivation {
    name = "has-dynamic-drv-dep";
    buildCommand = ''
      exit 1 # we're not building this derivation
      ${builtins.outputOf stub.outPath "out"}
    '';
  };
}