summaryrefslogtreecommitdiffstats
path: root/lib/tests/release.nix
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tests/release.nix')
-rw-r--r--lib/tests/release.nix15
1 files changed, 4 insertions, 11 deletions
diff --git a/lib/tests/release.nix b/lib/tests/release.nix
index d9a8a0067253..737d142d2532 100644
--- a/lib/tests/release.nix
+++ b/lib/tests/release.nix
@@ -1,11 +1,9 @@
{ pkgs ? import ((import ../.).cleanSource ../..) {} }:
-pkgs.stdenv.mkDerivation {
- name = "nixpkgs-lib-tests";
- buildInputs = [ pkgs.nix ];
+pkgs.runCommandNoCC "nixpkgs-lib-tests" {
+ buildInputs = [ pkgs.nix (import ./check-eval.nix) ];
NIX_PATH="nixpkgs=${pkgs.path}";
-
- buildCommand = ''
+} ''
datadir="${pkgs.nix}/share"
export TEST_ROOT=$(pwd)/test-tmp
export NIX_BUILD_HOOK=
@@ -22,10 +20,5 @@ pkgs.stdenv.mkDerivation {
cd ${pkgs.path}/lib/tests
bash ./modules.sh
- [[ "$(nix-instantiate --eval --strict misc.nix)" == "[ ]" ]]
-
- [[ "$(nix-instantiate --eval --strict systems.nix)" == "[ ]" ]]
-
touch $out
- '';
-}
+''