liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

default.nix (549B)


      1 {
      2   nellie,
      3   writeFennel,
      4   anoia,
      5   fennel,
      6   stdenv,
      7   fennelrepl,
      8   lualinux,
      9 }:
     10 stdenv.mkDerivation {
     11   name = "devout";
     12   src = ./.;
     13   nativeBuildInputs = [ fennelrepl ];
     14   postBuild = ''
     15     LUA_CPATH=${lualinux}/lib/lua/5.3/?.so\;$LUA_CPATH \
     16     fennelrepl ./test.fnl
     17   '';
     18   installPhase = ''
     19     mkdir -p $out/bin
     20     cp -p ${
     21       writeFennel "devout" {
     22         packages = [
     23           fennel
     24           anoia
     25           nellie
     26           lualinux
     27         ];
     28         mainFunction = "run";
     29       } ./devout.fnl
     30     } $out/bin/devout
     31   '';
     32 }