From c2698371ef823bb2158015a39347576ce0fcffe3 Mon Sep 17 00:00:00 2001 From: Sergei Zimmerman Date: Thu, 14 Aug 2025 22:46:59 +0300 Subject: [PATCH] lib/tests/test-with-nix: remove broken import ./check-eval This doesn't do the right thing here, because it evaluates the test with nix that is evaluating the `nixpkgs-lib-tests-nix-${nix.version}` derivation, not the Nix/Lix under test. This was just really busted for a long time. --- lib/tests/check-eval.nix | 10 ---------- lib/tests/test-with-nix.nix | 1 - 2 files changed, 11 deletions(-) delete mode 100644 lib/tests/check-eval.nix diff --git a/lib/tests/check-eval.nix b/lib/tests/check-eval.nix deleted file mode 100644 index 2ef7580e5857..000000000000 --- a/lib/tests/check-eval.nix +++ /dev/null @@ -1,10 +0,0 @@ -# Throws an error if any of our lib tests fail. - -let - tests = [ - "misc" - "systems" - ]; - all = builtins.concatLists (map (f: import (./. + "/${f}.nix")) tests); -in -if all == [ ] then null else throw (builtins.toJSON all) diff --git a/lib/tests/test-with-nix.nix b/lib/tests/test-with-nix.nix index 36db15ab32c8..4e13eef4c5b1 100644 --- a/lib/tests/test-with-nix.nix +++ b/lib/tests/test-with-nix.nix @@ -18,7 +18,6 @@ pkgs.runCommand "nixpkgs-lib-tests-nix-${nix.version}" { buildInputs = [ - (import ./check-eval.nix) (import ./fetchers.nix) (import ../path/tests { inherit pkgs;