Verified Commit e76bef38 authored by TECHNOFAB's avatar TECHNOFAB 🐈
Browse files

chore: update rensa and use improved input handling

parent fbacfc14
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
source $(fetchurl https://gitlab.com/rensa-nix/direnv/-/raw/v0.2.0/direnvrc "sha256-PFFxlZWNz/LLuNHA1Zpu2qdC3MF+oukv/TxFj5Utixk=")
REN_FLAKE_ATTR=__std
use ren //repo/devShells/default
+5 −6
Original line number Diff line number Diff line
{
  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 \
+5 −8
Original line number Diff line number Diff line
{
  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";
+6 −1
Original line number Diff line number Diff line
@@ -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;};
    };
}
+2 −7
Original line number Diff line number Diff line
{
  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