vuko | 9836999 | 2022-12-20 00:48:28 +0100 | [diff] [blame] | 1 | { system ? builtins.currentSystem, ... }@args: |
Serge Bazanski | 2efb698 | 2020-10-03 00:13:45 +0200 | [diff] [blame] | 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 | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 10 | # Tracking nixos-unstable as of 2023-07-24. |
| 11 | nixpkgsCommit = "e6b1f2f22b28851d5515eb53d8d5e905aabdad46"; |
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 | 97b5cd7 | 2023-07-28 17:14:50 +0000 | [diff] [blame] | 14 | sha256 = "sha256:0jwwndkdfrv8cfcv47ir1k05gqqxhpi3jkv3dsyflv0wy3pl98g2"; |
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; |
Patryk Jakuszew | 28742b8 | 2022-11-26 21:33:38 +0100 | [diff] [blame] | 19 | |
| 20 | # Nixpkgs marked this package as insecure. |
| 21 | # We need it for HTML-to-PDF conversion. |
| 22 | config.permittedInsecurePackages = [ |
| 23 | "qtwebkit-5.212.0-alpha4" |
| 24 | ]; |
vuko | 9836999 | 2022-12-20 00:48:28 +0100 | [diff] [blame] | 25 | inherit system; |
Serge Bazanski | 2efb698 | 2020-10-03 00:13:45 +0200 | [diff] [blame] | 26 | }; |
| 27 | |
Serge Bazanski | c35ea6a | 2022-07-07 17:47:58 +0200 | [diff] [blame] | 28 | resForPkgs = pkgs: fix (self: (readTree rec { |
| 29 | hscloud = self; |
| 30 | inherit pkgs; |
| 31 | pkgsSrc = pkgs.path; |
| 32 | inherit (pkgs) lib stdenv; |
| 33 | hscloudForPkgs = pkgs: resForPkgs pkgs; |
| 34 | } ./.)); |
| 35 | |
| 36 | in (resForPkgs nixpkgs) // { |
Bartosz Stebel | 56ff18c | 2021-08-30 23:28:45 +0200 | [diff] [blame] | 37 | root = ./.; |
Serge Bazanski | 2efb698 | 2020-10-03 00:13:45 +0200 | [diff] [blame] | 38 | pkgs = nixpkgs; |
Serge Bazanski | c35ea6a | 2022-07-07 17:47:58 +0200 | [diff] [blame] | 39 | } |