default.nix (649B)
1 { 2 fetchurl, 3 writeFennel, 4 fennel, 5 fennelrepl, 6 runCommand, 7 lua, 8 anoia, 9 linotify, 10 lualinux, 11 stdenv, 12 }: 13 let 14 name = "watch-outputs"; 15 in 16 stdenv.mkDerivation { 17 inherit name; 18 src = ./.; 19 20 buildInputs = [ lua ]; 21 nativeBuildInputs = [ fennelrepl ]; 22 23 buildPhase = '' 24 fennelrepl --test ./watch-outputs.fnl 25 cp -p ${ 26 writeFennel name { 27 packages = [ 28 anoia 29 lualinux 30 linotify 31 fennel 32 ]; 33 macros = [ anoia.dev ]; 34 mainFunction = "run"; 35 } ./watch-outputs.fnl 36 } ${name} 37 ''; 38 39 installPhase = '' 40 install -D ${name} $out/bin/${name} 41 ''; 42 }