liminix

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

default.nix (674B)


      1 {
      2   fetchurl,
      3   writeFennel,
      4   fennel,
      5   fennelrepl,
      6   runCommand,
      7   lua,
      8   anoia,
      9   lualinux,
     10   openssl,
     11   stdenv,
     12 }:
     13 let
     14   name = "certifix-client";
     15 in
     16 stdenv.mkDerivation {
     17   inherit name;
     18   src = ./.;
     19 
     20   buildInputs = [
     21     openssl
     22     lua
     23   ];
     24 
     25   buildPhase = "";
     26   installPhase = ''
     27     mkdir -p $out/bin
     28     cp -p ${
     29       writeFennel name {
     30         packages = with lua.pkgs; [
     31           fennel
     32           anoia
     33           lualinux
     34           luaossl
     35           http
     36           lpeg
     37           lpeg_patterns
     38           basexx
     39           cqueues
     40           fifo
     41           binaryheap
     42         ];
     43         mainFunction = "run";
     44       } ./${name}.fnl
     45     } $out/bin/${name}
     46   '';
     47 }