fix(test): ensure tests build properly through Nix

This commit is contained in:
Kiana Sheibani 2025-11-01 22:13:59 -04:00
parent 4e8e564b44
commit 06fbd2d6ad
Signed by: toki
GPG key ID: 6CB106C25E86A9F7

View file

@ -1,9 +1,10 @@
let
bash-test = subdir: { runCommandLocal }:
runCommandLocal "${subdir}-test" { FLAKE = ../.; }
bash-test = subdir: { runCommandLocal, makeWrapper }:
runCommandLocal "${subdir}-test" { nativeBuildInputs = [ makeWrapper ]; }
''
mkdir -p $out/bin
install ${subdir}/test $out/bin/
install ${./${subdir}/test} $out/bin/${subdir}-test
wrapProgram "$out/bin/${subdir}-test" --set FLAKE ${../.}
'';
in {
a2-p1 = bash-test "part1";