feat(.nixery): Add Nixery-compatible, importable folder

See the contained README for details.

Change-Id: I2870e260b17eda483308f7f884d13bab4db542ed
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3277
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2021-08-06 14:07:24 +03:00 committed by tazjin
parent 9d087b3274
commit 3be6eed241
2 changed files with 19 additions and 0 deletions

13
.nixery/README.md Normal file
View file

@ -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).

6
.nixery/default.nix Normal file
View file

@ -0,0 +1,6 @@
# See README.md
{ depot ? import ../. {} }:
depot.third_party.nixpkgs.extend(_: _: {
tvl = depot;
})