From 2b9cbf6392ee46510b9259033b4e955bad88429d Mon Sep 17 00:00:00 2001 From: Torsten Schmits Date: Sun, 24 Sep 2023 16:03:11 +0200 Subject: [PATCH] use nix from pkgs in bootstrap test --- test/bootstrap/test.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/bootstrap/test.nix b/test/bootstrap/test.nix index 63b3b3d..88dce29 100644 --- a/test/bootstrap/test.nix +++ b/test/bootstrap/test.nix @@ -1,9 +1,9 @@ -{...}: +{pkgs}: { - test = builtins.toFile "bootstrap-test" '' + test = pkgs.writeText "bootstrap-test" '' cd ./root git init - check_match 'nix run path:$hix_dir#bootstrap' 'generated red-panda-core' "Bootstrap command didn't generate cabal files" - check_match 'nix run .#ghci -- -p red-panda -t main <<< :quit' 'success' 'Running tests in generated project failed' + check_match '${pkgs.nix}/bin/nix run path:$hix_dir#bootstrap' 'generated red-panda-core' "Bootstrap command didn't generate cabal files" + check_match '${pkgs.nix}/bin/nix run .#ghci -- -p red-panda -t main <<< :quit' 'success' 'Running tests in generated project failed' ''; }