liminix

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

default.nix (606B)


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