devout: run tests in postBuild

because checkPhase is not executed when cross-compiling, and this
package is always only cross-compiled
main
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 {
name = "devout";
src = ./.;
checkInputs = [ fennelrepl ];
nativeBuildInputs = [ fennelrepl ];
postBuild = ''
LUA_CPATH=${lualinux}/lib/lua/5.3/?.so\;$LUA_CPATH \
fennelrepl ./test.fnl
'';
installPhase = ''
mkdir -p $out/bin
cp -p ${writeFennel "devout" {
@ -19,9 +23,4 @@ stdenv.mkDerivation {
mainFunction = "run";
} ./devout.fnl} $out/bin/devout
'';
checkPhase = ''
LUA_CPATH=${lualinux}/lib/lua/5.3/?.so\;$LUA_CPATH \
fennelrepl ./test.fnl
'';
doCheck = true;
}