blob: d9f0dca7548f4280d3784e9124487b7a57a67d74 [file] [log] [blame]
{ system ? builtins.currentSystem, ... }@args:
with builtins;
let
fix = f: let x = f x; in x;
readTree = import ./nix/readtree {};
# Tracking nixos-unstable as of 2025-01-08.
nixpkgsCommit = "8f3e1f807051e32d8c95cd12b9b421623850a34d";
nixpkgsSrc = fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/${nixpkgsCommit}.tar.gz";
sha256 = "sha256:1cpsxhm3fwsyf5shr35kirj1ajz8iy601q37xi3ma4f8dxd4vagy";
};
nixpkgs = import nixpkgsSrc {
config.allowUnfree = true;
config.allowBroken = true;
# Nixpkgs marked this package as insecure.
# We need it for HTML-to-PDF conversion.
config.permittedInsecurePackages = [
"qtwebkit-5.212.0-alpha4"
];
inherit system;
};
resForPkgs = pkgs: fix (self: (readTree rec {
hscloud = self;
inherit pkgs;
pkgsSrc = pkgs.path;
inherit (pkgs) lib stdenv;
hscloudForPkgs = pkgs: resForPkgs pkgs;
} ./.));
in (resForPkgs nixpkgs) // {
root = ./.;
pkgs = nixpkgs;
hscloudForPkgs = pkgs: resForPkgs pkgs;
}