forked from DGNum/liminix
450d3820b2
requires less cavorting with globals and stuff
26 lines
475 B
Nix
26 lines
475 B
Nix
{
|
|
lua
|
|
, nellie
|
|
, writeFennel
|
|
, runCommand
|
|
, anoia
|
|
, fennel
|
|
, stdenv
|
|
, fennelrepl
|
|
}:
|
|
stdenv.mkDerivation {
|
|
name = "uevent-watch";
|
|
src = ./.;
|
|
nativeBuildInputs = [ fennelrepl ];
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp -p ${writeFennel "uevent-watch" {
|
|
packages = [fennel anoia nellie lua.pkgs.luafilesystem];
|
|
mainFunction = "run";
|
|
} ./watch.fnl} $out/bin/uevent-watch
|
|
'';
|
|
checkPhase = ''
|
|
fennelrepl ./test.fnl
|
|
'';
|
|
doCheck = true;
|
|
}
|