docs: use lib.extend instead of patching nixpkgs

This speeds up evaluation and removes IFD. Additionally, this makes it
easier to maintain these library changes, as we don't have to maintain
static patches.

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2024-06-05 21:59:34 +02:00 committed by Matt Sturgeon
parent 04671a049a
commit aa4afbeac2
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
3 changed files with 36 additions and 63 deletions

View file

@ -1,14 +1,18 @@
{
perSystem =
{
pkgs,
pkgsUnfree,
config,
rawModules,
helpers,
...
}:
{
packages = import ../docs { inherit rawModules pkgs helpers; };
packages = import ../docs {
inherit rawModules helpers;
# Building the docs evaluates each plugin's default package, some of which are unfree
pkgs = pkgsUnfree;
};
# Test that all packages build fine when running `nix flake check`.
checks = config.packages;