devshell/flake.nix

38 lines
725 B
Nix
Raw Normal View History

2025-07-31 12:37:19 +02:00
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
ren.url = "gitlab:rensa-nix/core?dir=lib";
2025-07-31 12:37:19 +02:00
};
outputs = {
self,
ren,
2025-07-31 12:37:19 +02:00
...
} @ inputs:
ren.buildWith
2025-07-31 12:37:19 +02:00
{
inherit inputs;
cellsFrom = ./nix;
transformInputs = system: i:
i
// {
pkgs = import i.nixpkgs {inherit system;};
};
cellBlocks = with ren.blocks; [
(simple "devShells")
(simple "tests")
(simple "benchmark")
(simple "docs")
(simple "ci")
2025-07-31 12:37:19 +02:00
];
}
{
packages = ren.select self [
["repo" "tests"]
["repo" "benchmark"]
["repo" "docs"]
["repo" "ci" "packages"]
];
2025-07-31 12:37:19 +02:00
};
}