forked from DGNum/liminix
27 lines
472 B
Nix
27 lines
472 B
Nix
{
|
|
lua
|
|
, nellie
|
|
, lualinux
|
|
, 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 lualinux];
|
|
mainFunction = "run";
|
|
} ./watch.fnl} $out/bin/uevent-watch
|
|
'';
|
|
checkPhase = ''
|
|
fennelrepl ./test.fnl
|
|
'';
|
|
doCheck = true;
|
|
}
|