blob: f06a4d3bd2ed22cccc3e9c831a4b10632f139a08 [file] [log] [blame]
Serge Bazanski2efb6982020-10-03 00:13:45 +02001{ ... }@args:
2
3with builtins;
4
5let
6 fix = f: let x = f x; in x;
7
Bartosz Stebel56ff18c2021-08-30 23:28:45 +02008 readTree = import ./nix/readtree {};
Serge Bazanski2efb6982020-10-03 00:13:45 +02009
Serge Bazanskic31887e2021-08-11 16:47:36 +000010 # Tracking nixos-unstable as of 2021-08-11.
11 nixpkgsCommit = "e26c0ffdb013cd378fc2528a44689a8bf35d2a6c";
Serge Bazanski2efb6982020-10-03 00:13:45 +020012 nixpkgsSrc = fetchTarball {
Serge Bazanski225a5c72021-02-13 13:15:57 +010013 url = "https://github.com/NixOS/nixpkgs/archive/${nixpkgsCommit}.tar.gz";
Serge Bazanskic31887e2021-08-11 16:47:36 +000014 sha256 = "1b33hw35fqb9rzszdg5jpiyfvhx2cxpv0qrkyr19zkdpdahzdbss";
Serge Bazanski2efb6982020-10-03 00:13:45 +020015 };
16 nixpkgs = import nixpkgsSrc {
17 config.allowUnfree = true;
18 config.allowBroken = true;
19 };
20
Bartosz Stebel56ff18c2021-08-30 23:28:45 +020021in fix (self: (readTree rec {
22 hscloud = self;
23 pkgs = nixpkgs;
24 pkgsSrc = nixpkgsSrc;
25 inherit (nixpkgs) lib stdenv;
26} ./.) // {
27 root = ./.;
Serge Bazanski2efb6982020-10-03 00:13:45 +020028 pkgs = nixpkgs;
29})