mirror of
https://gitlab.com/rensa-nix/devshell.git
synced 2025-12-11 22:00:08 +01:00
chore: update rensa and use improved input handling
This commit is contained in:
parent
fbacfc149b
commit
e76bef387e
7 changed files with 70 additions and 33 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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;};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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";};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue