new package watch-outputs and example of its use

This commit is contained in:
Daniel Barlow
2024-08-14 22:58:17 +01:00
parent 2f82e0dab8
commit d79a941504
17 changed files with 172 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
{
fetchurl,
writeFennel,
fennel,
runCommand,
lua,
anoia,
linotify,
lualinux,
stdenv
}:
let name = "watch-outputs";
in stdenv.mkDerivation {
inherit name;
src = ./.;
buildInputs = [lua];
# doCheck = true;
buildPhase = ''
cp -p ${writeFennel name {
packages = [
anoia
lualinux
linotify
fennel
] ;
mainFunction = "run";
} ./watch-outputs.fnl } ${name}
'';
# checkPhase = "make check";
installPhase = ''
install -D ${name} $out/bin/${name}
'';
}