liminix/pkgs/devout/default.nix
2024-04-20 17:45:40 +01:00

25 lines
439 B
Nix

{
lua
, nellie
, writeFennel
, anoia
, fennel
, stdenv
, fennelrepl
}:
stdenv.mkDerivation {
name = "devout";
src = ./.;
checkInputs = [ fennelrepl ];
installPhase = ''
mkdir -p $out/bin
cp -p ${writeFennel "devout" {
packages = [fennel anoia nellie lua.pkgs.luafilesystem];
mainFunction = "run";
} ./devout.fnl} $out/bin/devout
'';
checkPhase = ''
fennelrepl ./test.fnl
'';
doCheck = true;
}