Serge Bazanski | 2efb698 | 2020-10-03 00:13:45 +0200 | [diff] [blame] | 1 | { ... }@args: |
| 2 | |
| 3 | with builtins; |
| 4 | |
| 5 | let |
| 6 | fix = f: let x = f x; in x; |
| 7 | |
| 8 | readTree = import ./nix/readtree.nix {}; |
| 9 | |
Serge Bazanski | 225a5c7 | 2021-02-13 13:15:57 +0100 | [diff] [blame] | 10 | # Tracking nixos-unstable as of 2021-01-31. |
| 11 | nixpkgsCommit = "44ad80ab1036c5cc83ada4bfa451dac9939f2a10"; |
Serge Bazanski | 2efb698 | 2020-10-03 00:13:45 +0200 | [diff] [blame] | 12 | nixpkgsSrc = fetchTarball { |
Serge Bazanski | 225a5c7 | 2021-02-13 13:15:57 +0100 | [diff] [blame] | 13 | url = "https://github.com/NixOS/nixpkgs/archive/${nixpkgsCommit}.tar.gz"; |
| 14 | sha256 = "1b61nzvy0d46cspy07szkc0rggacxiqg9v1py27pkqpj7rvawfsk"; |
Serge Bazanski | 2efb698 | 2020-10-03 00:13:45 +0200 | [diff] [blame] | 15 | }; |
| 16 | nixpkgs = import nixpkgsSrc { |
| 17 | config.allowUnfree = true; |
| 18 | config.allowBroken = true; |
| 19 | }; |
| 20 | |
| 21 | in fix (self: rec { |
| 22 | config = { |
| 23 | hscloud = self // { |
| 24 | root = ./.; |
| 25 | }; |
| 26 | pkgs = nixpkgs; |
| 27 | pkgsSrc = nixpkgsSrc; |
| 28 | |
| 29 | inherit (nixpkgs) lib stdenv; |
| 30 | }; |
| 31 | |
| 32 | bgpwtf = readTree config ./bgpwtf; |
| 33 | cluster = readTree config ./cluster; |
Serge Bazanski | b1de757 | 2020-10-29 00:43:43 +0100 | [diff] [blame] | 34 | hswaw = readTree config ./hswaw; |
Serge Bazanski | 2efb698 | 2020-10-03 00:13:45 +0200 | [diff] [blame] | 35 | ops = readTree config ./ops; |
| 36 | |
| 37 | pkgs = nixpkgs; |
| 38 | }) |