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
No known key found for this signature in database
7 changed files with 70 additions and 33 deletions

View file

@ -1,10 +1,9 @@
{
inputs,
cell,
}: {
bench = inputs.nixpkgs.writeShellApplication {
{inputs, ...}: let
inherit (inputs) pkgs;
in {
bench = pkgs.writeShellApplication {
name = "benchmark";
runtimeInputs = [inputs.nixpkgs.hyperfine];
runtimeInputs = [pkgs.hyperfine];
text = ''
echo "Comparison cases first:"
hyperfine -w 3 \

View file

@ -1,13 +1,10 @@
{
inputs,
cell,
}: let
devshell = import "${inputs.self}/lib" {
pkgs = inputs.nixpkgs;
};
{inputs, ...}: let
inherit (inputs) pkgs devshell;
in {
default = devshell.mkShell {
packages = [inputs.nixpkgs.alejandra];
packages = [
pkgs.alejandra
];
env."HELLO".value = "world!";
enterShellCommands.test = {
text = "echo Hello $HELLO";

View file

@ -2,5 +2,10 @@
inputs = {
nixtest-lib.url = "gitlab:TECHNOFAB/nixtest?dir=lib";
};
outputs = i: i;
outputs = i:
i
// {
ntlib = i.nixtest-lib.lib {inherit (i.parent) pkgs;};
devshell = import "${i.parent.self}/lib" {inherit (i.parent) pkgs;};
};
}

View file

@ -1,10 +1,5 @@
{
inputs,
cell,
}: let
pkgs = inputs.nixpkgs;
ntlib = inputs.nixtest-lib.lib {inherit pkgs;};
devshell = import "${inputs.self}/lib" {inherit pkgs;};
{inputs, ...}: let
inherit (inputs) pkgs ntlib devshell;
in {
tests = ntlib.mkNixtest {
modules = ntlib.autodiscover {dir = "${inputs.self}/tests";};