diff options
Diffstat (limited to 'tests/functional/repl_characterization/extra_data')
5 files changed, 19 insertions, 0 deletions
diff --git a/tests/functional/repl_characterization/extra_data/repl-overlay-fail.nix b/tests/functional/repl_characterization/extra_data/repl-overlay-fail.nix new file mode 100644 index 000000000..426127916 --- /dev/null +++ b/tests/functional/repl_characterization/extra_data/repl-overlay-fail.nix @@ -0,0 +1 @@ +info: final: prev: builtins.abort "uh oh!" diff --git a/tests/functional/repl_characterization/extra_data/repl-overlay-no-dotdotdot.nix b/tests/functional/repl_characterization/extra_data/repl-overlay-no-dotdotdot.nix new file mode 100644 index 000000000..1cced3324 --- /dev/null +++ b/tests/functional/repl_characterization/extra_data/repl-overlay-no-dotdotdot.nix @@ -0,0 +1 @@ +{currentSystem}: final: prev: {} diff --git a/tests/functional/repl_characterization/extra_data/repl-overlay-packages-is-pkgs.nix b/tests/functional/repl_characterization/extra_data/repl-overlay-packages-is-pkgs.nix new file mode 100644 index 000000000..57895a97f --- /dev/null +++ b/tests/functional/repl_characterization/extra_data/repl-overlay-packages-is-pkgs.nix @@ -0,0 +1,4 @@ +info: final: prev: +{ + pkgs = final.packages.x86_64-linux; +} diff --git a/tests/functional/repl_characterization/extra_data/repl-overlays-compose-1.nix b/tests/functional/repl_characterization/extra_data/repl-overlays-compose-1.nix new file mode 100644 index 000000000..055e9ea0f --- /dev/null +++ b/tests/functional/repl_characterization/extra_data/repl-overlays-compose-1.nix @@ -0,0 +1,7 @@ +info: final: prev: +{ + var = prev.var + "b"; + + # We can access the final value of `var` here even though it isn't defined yet: + varUsingFinal = "final value is: " + final.newVar; +} diff --git a/tests/functional/repl_characterization/extra_data/repl-overlays-compose-2.nix b/tests/functional/repl_characterization/extra_data/repl-overlays-compose-2.nix new file mode 100644 index 000000000..e88407311 --- /dev/null +++ b/tests/functional/repl_characterization/extra_data/repl-overlays-compose-2.nix @@ -0,0 +1,6 @@ +info: final: prev: +{ + var = prev.var + "c"; + + newVar = "puppy"; +} |