2022-12-20 00:48:28 +01:00
|
|
|
{ system ? builtins.currentSystem, ... }@args:
|
2020-10-03 00:13:45 +02:00
|
|
|
|
|
|
|
with builtins;
|
|
|
|
|
|
|
|
let
|
|
|
|
fix = f: let x = f x; in x;
|
|
|
|
|
2021-08-30 23:28:45 +02:00
|
|
|
readTree = import ./nix/readtree {};
|
2020-10-03 00:13:45 +02:00
|
|
|
|
2021-08-11 16:47:36 +00:00
|
|
|
# Tracking nixos-unstable as of 2021-08-11.
|
2022-11-26 21:33:38 +01:00
|
|
|
nixpkgsCommit = "42aae6fa748a41ced37373fc6d914de512658178";
|
2020-10-03 00:13:45 +02:00
|
|
|
nixpkgsSrc = fetchTarball {
|
2021-02-13 13:15:57 +01:00
|
|
|
url = "https://github.com/NixOS/nixpkgs/archive/${nixpkgsCommit}.tar.gz";
|
2022-11-26 21:33:38 +01:00
|
|
|
sha256 = "I7oAGC1Ldm5kcryUQxLubMmMCj5o0n+JSLVGRCL0wm8=";
|
2020-10-03 00:13:45 +02:00
|
|
|
};
|
|
|
|
nixpkgs = import nixpkgsSrc {
|
|
|
|
config.allowUnfree = true;
|
|
|
|
config.allowBroken = true;
|
2022-11-26 21:33:38 +01:00
|
|
|
|
|
|
|
# Nixpkgs marked this package as insecure.
|
|
|
|
# We need it for HTML-to-PDF conversion.
|
|
|
|
config.permittedInsecurePackages = [
|
|
|
|
"qtwebkit-5.212.0-alpha4"
|
|
|
|
];
|
2022-12-20 00:48:28 +01:00
|
|
|
inherit system;
|
2020-10-03 00:13:45 +02:00
|
|
|
};
|
|
|
|
|
2022-07-07 17:47:58 +02:00
|
|
|
resForPkgs = pkgs: fix (self: (readTree rec {
|
|
|
|
hscloud = self;
|
|
|
|
inherit pkgs;
|
|
|
|
pkgsSrc = pkgs.path;
|
|
|
|
inherit (pkgs) lib stdenv;
|
|
|
|
hscloudForPkgs = pkgs: resForPkgs pkgs;
|
|
|
|
} ./.));
|
|
|
|
|
|
|
|
in (resForPkgs nixpkgs) // {
|
2021-08-30 23:28:45 +02:00
|
|
|
root = ./.;
|
2020-10-03 00:13:45 +02:00
|
|
|
pkgs = nixpkgs;
|
2022-07-07 17:47:58 +02:00
|
|
|
}
|