diff options
author | vigress8 <vig@disroot.org> | 2024-10-14 17:19:22 +0400 |
---|---|---|
committer | vigress8 <vig@disroot.org> | 2024-10-14 17:19:22 +0400 |
commit | 31ff77b3f922ff57b6167433590ecfb7e8efc93d (patch) | |
tree | 54b22e460481922dda8eeb654e1a4fde98bd06b8 /tests/functional/dependencies.nix | |
parent | 326cbecb61d42ce73caa391cdcb21acb2581bf7c (diff) |
Remove ancient `let` from 2 test files
Change-Id: I992bc7f9e1cfcb1e4038fbe6ee04178bbf938556
Diffstat (limited to 'tests/functional/dependencies.nix')
-rw-r--r-- | tests/functional/dependencies.nix | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/tests/functional/dependencies.nix b/tests/functional/dependencies.nix index be1a7ae9a..0ede76b71 100644 --- a/tests/functional/dependencies.nix +++ b/tests/functional/dependencies.nix @@ -1,8 +1,7 @@ { hashInvalidator ? "" }: with import ./config.nix; -let { - +let input0 = mkDerivation { name = "dependencies-input-0"; buildCommand = "mkdir $out; echo foo > $out/bar"; @@ -32,17 +31,15 @@ let { outputHashAlgo = "sha256"; outputHash = "1dq9p0hnm1y75q2x40fws5887bq1r840hzdxak0a9djbwvx0b16d"; }; - - body = mkDerivation { - name = "dependencies-top"; - builder = ./dependencies.builder0.sh + "/FOOBAR/../."; - input1 = input1 + "/."; - input2 = "${input2}/."; - input1_drv = input1; - input2_drv = input2; - input0_drv = input0; - fod_input_drv = fod_input; - meta.description = "Random test package"; - }; - +in +mkDerivation { + name = "dependencies-top"; + builder = ./dependencies.builder0.sh + "/FOOBAR/../."; + input1 = input1 + "/."; + input2 = "${input2}/."; + input1_drv = input1; + input2_drv = input2; + input0_drv = input0; + fod_input_drv = fod_input; + meta.description = "Random test package"; } |