aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/rl-next/repl-overlays.md
diff options
context:
space:
mode:
authorJade Lovelace <lix@jade.fyi>2024-06-15 17:05:30 -0700
committerJade Lovelace <lix@jade.fyi>2024-06-15 18:46:18 -0700
commitf95a47e8c48a8b6eccc349d64aa5191a3618d7f4 (patch)
tree0752e37e2fa6c960565498ccfc023d1d0ea4972c /doc/manual/rl-next/repl-overlays.md
parent9923fb6dd95b13f14b60e6482e928a1eb2176cd1 (diff)
release: release notes for 2.90.0
For now we just need to put the release notes in the final spot. We will have to fix the date on both 2.90 and 2.91 branches, but such as it is. Release created with releng/create_release.xsh Closes: https://git.lix.systems/lix-project/lix/issues/318 Change-Id: I38e79b40e7f632c8a286f2f09865a84dc93eca90
Diffstat (limited to 'doc/manual/rl-next/repl-overlays.md')
-rw-r--r--doc/manual/rl-next/repl-overlays.md39
1 files changed, 0 insertions, 39 deletions
diff --git a/doc/manual/rl-next/repl-overlays.md b/doc/manual/rl-next/repl-overlays.md
deleted file mode 100644
index da69efdca..000000000
--- a/doc/manual/rl-next/repl-overlays.md
+++ /dev/null
@@ -1,39 +0,0 @@
----
-synopsis: Add `repl-overlays` option
-prs: 10203
-cls: 504
-credits: 9999years
-significance: significant
-category: Features
----
-
-A `repl-overlays` option has been added, which specifies files that can overlay
-and modify the top-level bindings in `nix repl`. For example, with the
-following contents in `~/.config/nix/repl.nix`:
-
-```nix
-info: final: prev: let
- optionalAttrs = predicate: attrs:
- if predicate
- then attrs
- else {};
-in
- optionalAttrs (prev ? legacyPackages && prev.legacyPackages ? ${info.currentSystem})
- {
- pkgs = prev.legacyPackages.${info.currentSystem};
- }
-```
-
-We can run `nix repl` and use `pkgs` to refer to `legacyPackages.${currentSystem}`:
-
-```ShellSession
-$ nix repl --repl-overlays ~/.config/nix/repl.nix nixpkgs
-Lix 2.90.0
-Type :? for help.
-Loading installable 'flake:nixpkgs#'...
-Added 5 variables.
-Loading 'repl-overlays'...
-Added 6 variables.
-nix-repl> pkgs.bash
-«derivation /nix/store/g08b5vkwwh0j8ic9rkmd8mpj878rk62z-bash-5.2p26.drv»
-```