2024-04-15 22:15:07 +02:00
|
|
|
{
|
|
|
|
lua
|
|
|
|
, nellie
|
2024-04-20 17:53:43 +02:00
|
|
|
, writeFennel
|
2024-04-15 22:15:07 +02:00
|
|
|
, runCommand
|
|
|
|
, anoia
|
|
|
|
, fennel
|
|
|
|
, stdenv
|
|
|
|
, fennelrepl
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "uevent-watch";
|
|
|
|
src = ./.;
|
|
|
|
nativeBuildInputs = [ fennelrepl ];
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2024-04-20 17:53:43 +02:00
|
|
|
cp -p ${writeFennel "uevent-watch" {
|
|
|
|
packages = [fennel anoia nellie lua.pkgs.luafilesystem];
|
|
|
|
mainFunction = "run";
|
|
|
|
} ./watch.fnl} $out/bin/uevent-watch
|
2024-04-15 22:15:07 +02:00
|
|
|
'';
|
|
|
|
checkPhase = ''
|
|
|
|
fennelrepl ./test.fnl
|
|
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
}
|