fix when imported

This commit is contained in:
tristan 2024-01-02 09:16:52 +00:00
parent 277fd1225c
commit 249bd9cda4
3 changed files with 6 additions and 9 deletions

View file

@ -1,11 +1,10 @@
{
description = "A testing library for nix";
outputs = { self, nixpkgs }:
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
testing = import ./testing/. { inherit pkgs; };
in
testing;
in testing;
}

View file

@ -1,5 +1,4 @@
{ pkgs ? import <nixpkgs> {} }:
{
{ pkgs ? import <nixpkgs> { } }: {
run = import ./run.nix pkgs;
it = import ./it.nix;
import = import ./import.nix;

View file

@ -1,7 +1,6 @@
path:
builtins.trace ("testing " + builtins.baseNameOf path)
{
let it = import ./it.nix;
in builtins.trace ("testing " + builtins.baseNameOf path) {
inherit path;
results = (import path);
results = (import path { inherit it; });
}