flake.nix: refactoring using flake-parts

This commit is contained in:
Gaetan Lepage 2023-12-06 13:09:26 +01:00 committed by Gaétan Lepage
parent 1f1065df1e
commit 31284ddabe
13 changed files with 320 additions and 202 deletions

View file

@ -0,0 +1,28 @@
{
perSystem = {
pkgs,
pkgsUnfree,
config,
modules,
...
}: {
packages = let
docs = {
docs = pkgsUnfree.callPackage (import ../docs) {
inherit modules;
};
};
man-docs = import ../man-docs {
pkgs = pkgsUnfree;
inherit modules;
};
# TODO: deprecate (unused)
helpers = import ../helpers pkgs;
in
docs
// man-docs
// helpers;
};
}