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:
parent
1b6a05aec5
commit
3d4e782929
1 changed files with 5 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue