fix(test): ensure tests build properly through Nix
This commit is contained in:
parent
4e8e564b44
commit
06fbd2d6ad
1 changed files with 4 additions and 3 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue