default.nix (636B)
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 = "output-template"; 15 in 16 stdenv.mkDerivation { 17 inherit name; 18 src = ./.; 19 20 buildInputs = [ lua ]; 21 nativeBuildInputs = [ fennelrepl ]; 22 buildPhase = '' 23 fennelrepl --test ./output-template.fnl 24 cp -p ${ 25 writeFennel name { 26 packages = [ 27 anoia 28 lualinux 29 linotify 30 ]; 31 macros = [ anoia.dev ]; 32 mainFunction = "run"; 33 } ./output-template.fnl 34 } ${name} 35 ''; 36 installPhase = '' 37 install -D ${name} $out/bin/${name} 38 ''; 39 }