diff --git a/flake.nix b/flake.nix index 1ba1fae..1bf2323 100644 --- a/flake.nix +++ b/flake.nix @@ -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; } diff --git a/testing/default.nix b/testing/default.nix index ce8bc15..6c2fb01 100644 --- a/testing/default.nix +++ b/testing/default.nix @@ -1,5 +1,4 @@ -{ pkgs ? import {} }: -{ +{ pkgs ? import { } }: { run = import ./run.nix pkgs; it = import ./it.nix; import = import ./import.nix; diff --git a/testing/import.nix b/testing/import.nix index f3d3cc7..3bd8e78 100644 --- a/testing/import.nix +++ b/testing/import.nix @@ -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; }); }