depot/default.nix

33 lines
751 B
Nix
Raw Permalink Normal View History

# SPDX-FileCopyrightText: 2020 Luke Granger-Brown <depot@lukegb.com>
#
# SPDX-License-Identifier: Apache-2.0
2021-09-05 09:21:41 +00:00
{ system ? builtins.currentSystem, ... }:
let
fix = f: let x = f x; in x;
config = depot: {
2021-09-05 09:21:41 +00:00
inherit depot system;
pkgs = depot.third_party.nixpkgs;
2022-03-14 21:29:15 +00:00
depotRoot = toString ./.;
};
in fix (self:
let ch = (self.config // { inherit (self) lib; });
in {
config = config self;
third_party = import ./third_party ch;
ops = import ./ops ch;
nix = import ./nix ch;
web = import ./web ch;
2020-10-04 00:07:59 +00:00
go = import ./go ch;
2021-02-22 21:31:23 +00:00
py = import ./py ch;
2024-10-20 22:20:48 +00:00
rust = import ./rust ch;
version = import ./version.nix ch;
lib = self.third_party.nixpkgs.lib;
pkgs = self.third_party.nixpkgs // self.nix.pkgs;
})