new package "devout", does nothing yet

This commit is contained in:
Daniel Barlow
2024-04-20 17:45:40 +01:00
parent 450d3820b2
commit 349bfecbb8
4 changed files with 48 additions and 0 deletions

25
pkgs/devout/default.nix Normal file
View File

@@ -0,0 +1,25 @@
{
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;
}