liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 3d4e7829292dfadccf38b298294e990a3e35d1b3
parent 1b6a05aec5b5f08f46081e2a57c6ccf3cb35cd04
Author: Daniel Barlow <dan@telent.net>
Date:   Sat, 27 Apr 2024 20:57:17 +0100

devout: run tests in postBuild

because checkPhase is not executed when cross-compiling, and this
package is always only cross-compiled

Diffstat:
Mpkgs/devout/default.nix | 11+++++------
1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/pkgs/devout/default.nix b/pkgs/devout/default.nix @@ -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; }