2024-06-30 15:58:29 +00:00
|
|
|
{
|
|
|
|
nellie,
|
|
|
|
lualinux,
|
|
|
|
writeFennel,
|
|
|
|
anoia,
|
|
|
|
fennel,
|
|
|
|
stdenv,
|
|
|
|
fennelrepl,
|
|
|
|
s6-rc-up-tree,
|
2024-04-15 20:15:07 +00:00
|
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "uevent-watch";
|
|
|
|
src = ./.;
|
2024-06-30 09:46:37 +00:00
|
|
|
nativeBuildInputs = [ fennelrepl ];
|
2024-06-15 13:59:34 +00:00
|
|
|
propagatedBuildInputs = [ s6-rc-up-tree ];
|
2024-04-15 20:15:07 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2024-04-20 15:53:43 +00:00
|
|
|
cp -p ${writeFennel "uevent-watch" {
|
2024-06-29 21:36:05 +00:00
|
|
|
packages = [fennel anoia nellie lualinux s6-rc-up-tree] ;
|
2024-04-20 15:53:43 +00:00
|
|
|
mainFunction = "run";
|
|
|
|
} ./watch.fnl} $out/bin/uevent-watch
|
2024-04-15 20:15:07 +00:00
|
|
|
'';
|
|
|
|
checkPhase = ''
|
|
|
|
fennelrepl ./test.fnl
|
|
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
}
|