From 853ef1304c379f03ef33f40bc68225d528cc6105 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 7 Dec 2021 21:45:09 +0100 Subject: [PATCH] Inline file --- tests/simple-failing.builder.sh | 2 -- tests/simple-failing.nix | 6 +++++- 2 files changed, 5 insertions(+), 3 deletions(-) delete mode 100644 tests/simple-failing.builder.sh diff --git a/tests/simple-failing.builder.sh b/tests/simple-failing.builder.sh deleted file mode 100644 index 6285488ca..000000000 --- a/tests/simple-failing.builder.sh +++ /dev/null @@ -1,2 +0,0 @@ -echo "This should fail" -exit 1 diff --git a/tests/simple-failing.nix b/tests/simple-failing.nix index 1e3a080ed..d176c9c51 100644 --- a/tests/simple-failing.nix +++ b/tests/simple-failing.nix @@ -2,7 +2,11 @@ with import ./config.nix; mkDerivation { name = "simple-failing"; - builder = ./simple-failing.builder.sh; + builder = builtins.toFile "builder.sh" + '' + echo "This should fail" + exit 1 + ''; PATH = ""; goodPath = path; }