liminix

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

default.nix (670B)


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