chore: update rensa and use improved input handling

This commit is contained in:
technofab 2025-08-20 09:03:18 +02:00
parent fbacfc149b
commit e76bef387e
Signed by: technofab
SSH key fingerprint: SHA256:bV4h88OqS/AxjbPn66uUdvK9JsgIW4tv3vwJQ8tpMqQ
7 changed files with 70 additions and 33 deletions

View file

@ -1,6 +1,7 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
ren.url = "gitlab:rensa-nix/core?dir=lib";
std = {
url = "github:divnix/std";
inputs = {
@ -15,20 +16,25 @@
outputs = {
self,
std,
ren,
...
} @ inputs:
std.growOn
ren.buildWith
{
inherit inputs;
cellsFrom = ./.nix;
cellBlocks = with std.blockTypes; [
(devshells "devShells")
(pkgs "tests")
(runnables "benchmark")
transformInputs = system: i:
i
// {
pkgs = import i.nixpkgs {inherit system;};
};
cellBlocks = with ren.blocks; [
(simple "devShells")
(simple "tests")
(simple "benchmark")
];
}
{
packages = std.harvest self [["repo" "tests"] ["repo" "benchmark"]];
packages = ren.select self [["repo" "tests"] ["repo" "benchmark"]];
};
}