From f8aadf14c3426f7ab2b7a934b602f812bcc5b8ae Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 8 Feb 2006 15:21:57 +0000 Subject: * Test-driven development, woohoo! nix-env should work on functions, provided that all arguments have defaults. --- tests/user-envs.nix.in | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/user-envs.nix.in b/tests/user-envs.nix.in index 5700a3322..21feea0d3 100644 --- a/tests/user-envs.nix.in +++ b/tests/user-envs.nix.in @@ -1,8 +1,14 @@ +# Some dummy arguments... +{ system ? "@system@" +, foo ? "foo" +}: + +assert foo == "foo"; + let { makeDrv = name: progName: derivation { - inherit name progName; - system = "@system@"; + inherit name progName system; builder = "@shell@"; shell = "@shell@"; args = ["-e" "-x" ./user-envs.builder.sh]; -- cgit v1.2.3