From 14d1ba8311b7f018aea838745935e01a700e7866 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 18 Jan 2022 19:28:00 +0300 Subject: chore(3p/nixpkgs): Make externally importable This change is required for using our package set in exported josh workspaces. It has no functional impact on depot itself. Change-Id: Id48b40f067b5d53a2b7386a0ba1146a72268b923 Reviewed-on: https://cl.tvl.fyi/c/depot/+/4990 Tested-by: BuildkiteCI Reviewed-by: sterni --- third_party/nixpkgs/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/third_party/nixpkgs/default.nix b/third_party/nixpkgs/default.nix index 11833077628a..27a5a8673e1a 100644 --- a/third_party/nixpkgs/default.nix +++ b/third_party/nixpkgs/default.nix @@ -6,7 +6,7 @@ # in //default.nix passes this attribute as the `pkgs` argument to all # readTree derivations. -{ depot, externalArgs, ... }: +{ depot ? {}, externalArgs ? {}, depotOverlays ? true, ... }: let # This provides the sources of nixpkgs. We track both @@ -66,12 +66,14 @@ in import nixpkgsSrc { allowUnfree = true; allowBroken = true; }; + overlays = [ commitsOverlay stableOverlay + ] ++ (if depotOverlays then [ depot.third_party.overlays.haskell depot.third_party.overlays.emacs depot.third_party.overlays.tvl depot.third_party.overlays.ecl-static - ]; + ] else []); } -- cgit 1.4.1