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 | |
Bartosz Stebel | 56ff18c | 2021-08-30 23:28:45 +0200 | [diff] [blame] | 8 | readTree = import ./nix/readtree {}; |
Serge Bazanski | 2efb698 | 2020-10-03 00:13:45 +0200 | [diff] [blame] | 9 | |
Serge Bazanski | c31887e | 2021-08-11 16:47:36 +0000 | [diff] [blame] | 10 | # Tracking nixos-unstable as of 2021-08-11. |
| 11 | nixpkgsCommit = "e26c0ffdb013cd378fc2528a44689a8bf35d2a6c"; |
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"; |
Serge Bazanski | c31887e | 2021-08-11 16:47:36 +0000 | [diff] [blame] | 14 | sha256 = "1b33hw35fqb9rzszdg5jpiyfvhx2cxpv0qrkyr19zkdpdahzdbss"; |
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 | |
Bartosz Stebel | 56ff18c | 2021-08-30 23:28:45 +0200 | [diff] [blame] | 21 | in fix (self: (readTree rec { |
| 22 | hscloud = self; |
| 23 | pkgs = nixpkgs; |
| 24 | pkgsSrc = nixpkgsSrc; |
| 25 | inherit (nixpkgs) lib stdenv; |
| 26 | } ./.) // { |
| 27 | root = ./.; |
Serge Bazanski | 2efb698 | 2020-10-03 00:13:45 +0200 | [diff] [blame] | 28 | pkgs = nixpkgs; |
| 29 | }) |