liminix

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

default.nix (614B)


      1 {
      2   nellie,
      3   lualinux,
      4   writeFennel,
      5   anoia,
      6   fennel,
      7   stdenv,
      8   fennelrepl,
      9   s6-rc-up-tree,
     10 }:
     11 stdenv.mkDerivation {
     12   name = "uevent-watch";
     13   src = ./.;
     14   nativeBuildInputs = [ fennelrepl ];
     15   propagatedBuildInputs = [ s6-rc-up-tree ];
     16   installPhase = ''
     17     mkdir -p $out/bin
     18     cp -p ${
     19       writeFennel "uevent-watch" {
     20         packages = [
     21           fennel
     22           anoia
     23           nellie
     24           lualinux
     25           s6-rc-up-tree
     26         ];
     27         mainFunction = "run";
     28       } ./watch.fnl
     29     } $out/bin/uevent-watch
     30   '';
     31   checkPhase = ''
     32     fennelrepl ./test.fnl
     33   '';
     34   doCheck = true;
     35 }