From 7974aae81ced67b2aee0b537a37d813f6c67a1ec Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 1 Sep 2006 12:07:31 +0000 Subject: * New primop: builtins.toFile, which writes a string into the store and returns its path. This can be used to (for instance) write builders inside a Nix expression, e.g., stdenv.mkDerivation { builder = " source $stdenv/setup ... "; ... } --- tests/gc-runtime.nix.in | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) (limited to 'tests') diff --git a/tests/gc-runtime.nix.in b/tests/gc-runtime.nix.in index aefffa276623..4ffe0435aa4d 100644 --- a/tests/gc-runtime.nix.in +++ b/tests/gc-runtime.nix.in @@ -1,7 +1,23 @@ -derivation { - name = "gc-runtime"; - system = "@system@"; - builder = "@shell@"; - args = ["-e" "-x" ./gc-runtime.builder.sh]; - PATH = "@testPath@"; +let { + + # Test inline source file definitions. + builder = builtins.toFile " +mkdir $out + +cat > $out/program <