core/flake.nix

33 lines
709 B
Nix
Raw Permalink Normal View History

2025-08-05 14:55:13 +02:00
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nixpkgs-lib.url = "github:nix-community/nixpkgs.lib";
2025-08-05 14:55:13 +02:00
};
outputs = inputs: let
rensa = import ./lib {
inherit (inputs.nixpkgs-lib) lib;
2025-08-05 14:55:13 +02:00
};
in
rensa.buildWith {
inherit inputs;
transformInputs = system: i:
i
// {
pkgs = import i.nixpkgs {inherit system;};
};
2025-08-05 14:55:13 +02:00
cellsFrom = ./cells;
2025-08-05 16:15:24 +02:00
cellBlocks = with rensa.blocks; [
(simple "test")
(simple "devShells")
2025-08-28 10:30:23 +02:00
(simple "docs")
2025-09-17 14:30:50 +02:00
(simple "ci")
2025-08-05 14:55:13 +02:00
];
2025-08-28 10:30:23 +02:00
} {
2025-09-17 14:30:50 +02:00
packages = rensa.select inputs.self [
["repo" "docs"]
["repo" "ci" "packages"]
];
2025-08-28 10:30:23 +02:00
};
2025-08-05 14:55:13 +02:00
}