tests.makeBinaryWrapper: avoid lib.fileset

This commit is contained in:
Emily 2024-12-30 19:24:54 +00:00
parent f6ce575a03
commit 6ff076b1b1
33 changed files with 1 additions and 10 deletions

View File

@ -20,16 +20,7 @@ let
runCommand "make-binary-wrapper-test-${testname}" env ''
mkdir -p tmp/foo # for the chdir test
source=${
lib.fileset.toSource {
root = ./.;
fileset = lib.fileset.unions [
(./. + "/${testname}.cmdline")
(./. + "/${testname}.c")
(lib.fileset.maybeMissing (./. + "/${testname}.env"))
];
}
}
source=${./${testname}}
params=$(<"$source/${testname}.cmdline")
eval "makeCWrapper /send/me/flags $params" > wrapper.c