1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 10:11:47 +02:00

tests/functional/dependencies.nix: Refactor, replace arcane let

(cherry picked from commit e82ff51726)
This commit is contained in:
Robert Hensing 2024-11-20 11:05:55 +01:00 committed by Mergify
parent 8a81c2428a
commit c797848b88

View file

@ -1,7 +1,7 @@
{ hashInvalidator ? "" }: { hashInvalidator ? "" }:
with import "${builtins.getEnv "_NIX_TEST_BUILD_DIR"}/config.nix"; with import "${builtins.getEnv "_NIX_TEST_BUILD_DIR"}/config.nix";
let { let
input0 = mkDerivation { input0 = mkDerivation {
name = "dependencies-input-0"; name = "dependencies-input-0";
@ -33,7 +33,8 @@ let {
outputHash = "1dq9p0hnm1y75q2x40fws5887bq1r840hzdxak0a9djbwvx0b16d"; outputHash = "1dq9p0hnm1y75q2x40fws5887bq1r840hzdxak0a9djbwvx0b16d";
}; };
body = mkDerivation { in
mkDerivation {
name = "dependencies-top"; name = "dependencies-top";
builder = ./dependencies.builder0.sh + "/FOOBAR/../."; builder = ./dependencies.builder0.sh + "/FOOBAR/../.";
input1 = input1 + "/."; input1 = input1 + "/.";
@ -43,6 +44,4 @@ let {
input0_drv = input0; input0_drv = input0;
fod_input_drv = fod_input; fod_input_drv = fod_input;
meta.description = "Random test package"; meta.description = "Random test package";
};
} }