From 3be6eed241bff1bd8c146158d15ed78e39a74d40 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 6 Aug 2021 14:07:24 +0300 Subject: 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 --- .nixery/README.md | 13 +++++++++++++ .nixery/default.nix | 6 ++++++ 2 files changed, 19 insertions(+) create mode 100644 .nixery/README.md create mode 100644 .nixery/default.nix (limited to '.nixery') diff --git a/.nixery/README.md b/.nixery/README.md new file mode 100644 index 0000000000..1762091300 --- /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 0000000000..71f1dfb5c4 --- /dev/null +++ b/.nixery/default.nix @@ -0,0 +1,6 @@ +# See README.md +{ depot ? import ../. {} }: + +depot.third_party.nixpkgs.extend(_: _: { + tvl = depot; +}) -- cgit 1.4.1