diff options
Diffstat (limited to 'tests/functional/big-derivation-attr.nix')
-rw-r--r-- | tests/functional/big-derivation-attr.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/functional/big-derivation-attr.nix b/tests/functional/big-derivation-attr.nix new file mode 100644 index 000000000..35c1187f6 --- /dev/null +++ b/tests/functional/big-derivation-attr.nix @@ -0,0 +1,13 @@ +let + sixteenBytes = "0123456789abcdef"; + times16 = s: builtins.concatStringsSep "" [s s s s s s s s s s s s s s s s]; + exp = n: x: if n == 1 then x else times16 (exp (n - 1) x); + sixteenMegabyte = exp 6 sixteenBytes; +in +assert builtins.stringLength sixteenMegabyte == 16777216; +derivation { + name = "big-derivation-attr"; + builder = "/x"; + system = "y"; + bigAttr = sixteenMegabyte; +} |