forked from hswaw/hscloud
29 lines
665 B
Nix
29 lines
665 B
Nix
{ ... }@args:
|
|
|
|
with builtins;
|
|
|
|
let
|
|
fix = f: let x = f x; in x;
|
|
|
|
readTree = import ./nix/readtree {};
|
|
|
|
# Tracking nixos-unstable as of 2021-08-11.
|
|
nixpkgsCommit = "e26c0ffdb013cd378fc2528a44689a8bf35d2a6c";
|
|
nixpkgsSrc = fetchTarball {
|
|
url = "https://github.com/NixOS/nixpkgs/archive/${nixpkgsCommit}.tar.gz";
|
|
sha256 = "1b33hw35fqb9rzszdg5jpiyfvhx2cxpv0qrkyr19zkdpdahzdbss";
|
|
};
|
|
nixpkgs = import nixpkgsSrc {
|
|
config.allowUnfree = true;
|
|
config.allowBroken = true;
|
|
};
|
|
|
|
in fix (self: (readTree rec {
|
|
hscloud = self;
|
|
pkgs = nixpkgs;
|
|
pkgsSrc = nixpkgsSrc;
|
|
inherit (nixpkgs) lib stdenv;
|
|
} ./.) // {
|
|
root = ./.;
|
|
pkgs = nixpkgs;
|
|
})
|