about summary refs log tree commit diff
path: root/.nixery
diff options
context:
space:
mode:
Diffstat (limited to '.nixery')
-rw-r--r--.nixery/README.md13
-rw-r--r--.nixery/default.nix6
2 files changed, 19 insertions, 0 deletions
diff --git a/.nixery/README.md b/.nixery/README.md
new file mode 100644
index 000000000000..176209130023
--- /dev/null
+++ b/.nixery/README.md
@@ -0,0 +1,13 @@
+Nixery set
+==========
+
+This folder exports a special import of the depot Nix structure that is
+compatible with Nixery, by extending nixpkgs with a `tvl` attribute containing
+the depot.
+
+This is required because Nixery expects its package set to look like nixpkgs at
+the top-level.
+
+In the future we might want to patch Nixery to not require this (e.g. make it
+possible to pass `third_party.nixpkgs` as a key at which to find the nixpkgs
+structure).
diff --git a/.nixery/default.nix b/.nixery/default.nix
new file mode 100644
index 000000000000..71f1dfb5c413
--- /dev/null
+++ b/.nixery/default.nix
@@ -0,0 +1,6 @@
+# See README.md
+{ depot ? import ../. {} }:
+
+depot.third_party.nixpkgs.extend(_: _: {
+  tvl = depot;
+})