forked from auxolotl/labs
36 lines
702 B
Nix
36 lines
702 B
Nix
|
{
|
||
|
description = "A set of foundational packages required for bootstrapping a larger package set.";
|
||
|
|
||
|
inputs = {
|
||
|
lib = {
|
||
|
url = "path:../lib";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
outputs = inputs: let
|
||
|
inherit (inputs.lib) lib;
|
||
|
|
||
|
modules = import ./src;
|
||
|
|
||
|
forEachSystem = lib.attrs.generate [
|
||
|
"x86_64-linux"
|
||
|
"aarch64-linux"
|
||
|
# "x86_64-darwin"
|
||
|
# "aarch64-darwin"
|
||
|
];
|
||
|
in {
|
||
|
packages = forEachSystem (
|
||
|
system: let
|
||
|
result = lib.modules.run {
|
||
|
modules =
|
||
|
(builtins.attrValues modules)
|
||
|
++ [
|
||
|
{config.aux.system = system;}
|
||
|
];
|
||
|
};
|
||
|
in
|
||
|
result.config.exports.resolved.packages
|
||
|
);
|
||
|
};
|
||
|
}
|