1
0
Fork 0

devout: run tests in postBuild

because checkPhase is not executed when cross-compiling, and this
package is always only cross-compiled
This commit is contained in:
Daniel Barlow 2024-04-27 20:57:17 +01:00
parent 1b6a05aec5
commit 3d4e782929
1 changed files with 5 additions and 6 deletions

View File

@ -11,7 +11,11 @@
stdenv.mkDerivation { stdenv.mkDerivation {
name = "devout"; name = "devout";
src = ./.; src = ./.;
checkInputs = [ fennelrepl ]; nativeBuildInputs = [ fennelrepl ];
postBuild = ''
LUA_CPATH=${lualinux}/lib/lua/5.3/?.so\;$LUA_CPATH \
fennelrepl ./test.fnl
'';
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
cp -p ${writeFennel "devout" { cp -p ${writeFennel "devout" {
@ -19,9 +23,4 @@ stdenv.mkDerivation {
mainFunction = "run"; mainFunction = "run";
} ./devout.fnl} $out/bin/devout } ./devout.fnl} $out/bin/devout
''; '';
checkPhase = ''
LUA_CPATH=${lualinux}/lib/lua/5.3/?.so\;$LUA_CPATH \
fennelrepl ./test.fnl
'';
doCheck = true;
} }