core/flake.nix
technofab 0d6970d95a
fix(loader): infinite recursion error when accessing sibling blocks
eg. accessing/returning `cell.b` (cell/b.nix) from cell/a.nix would
cause infinite recursion. That's now fixed
2025-12-23 14:40:32 +01:00

35 lines
797 B
Nix

{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nixpkgs-lib.url = "github:nix-community/nixpkgs.lib";
};
outputs = inputs: let
rensa = import ./lib {
inherit (inputs.nixpkgs-lib) lib;
};
in
rensa.buildWith {
inherit inputs;
transformInputs = system: i:
i
// {
pkgs = import i.nixpkgs {inherit system;};
};
cellsFrom = ./cells;
cellBlocks = with rensa.blocks; [
(simple "test")
(simple "other")
(simple "devShells")
(simple "docs")
(simple "ci")
(simple "soonix")
];
} {
packages = rensa.select inputs.self [
["repo" "docs"]
["repo" "ci" "packages"]
["repo" "soonix" "packages"]
];
};
}