labs/foundation/flake.nix

35 lines
750 B
Nix
Raw Normal View History

2024-06-05 02:04:40 +00:00
{
description = "A set of foundational packages required for bootstrapping a larger package set.";
inputs = {
lib = {
url = "git+file:../?dir=lib";
};
2024-06-05 02:04:40 +00:00
};
outputs = inputs: let
inherit (inputs.lib) lib;
2024-06-05 02:04:40 +00:00
modules = import ./src;
forEachSystem = lib.attrs.generate [
2024-06-07 05:49:52 +00:00
"i686-linux"
2024-06-13 21:37:53 +00:00
"x86_64-linux"
2024-06-05 02:04:40 +00:00
];
in {
2024-06-05 22:16:52 +00:00
extras = let
2024-06-13 21:37:53 +00:00
result = lib.modules.run {modules = builtins.attrValues modules;};
2024-06-05 22:16:52 +00:00
in
result.config.exports.resolved.extras;
2024-06-05 02:04:40 +00:00
packages = forEachSystem (
system: let
result = lib.modules.run {
2024-06-13 21:37:53 +00:00
modules = (builtins.attrValues modules) ++ [{config.aux.system = system;}];
2024-06-05 02:04:40 +00:00
};
in
result.config.exports.resolved.packages
);
};
}