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 <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2022-01-18 19:28:00 +03:00 committed by tazjin
parent 34f1074d34
commit 14d1ba8311

View file

@ -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 []);
}