eighty 0.2.0

Static website generator, mainly for the Core Paper project.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ pkgs ? import <nixpkgs> { } }:

with pkgs;

{ name, script, env ? [ ] }: writeTextFile {
  name = "${name}";
  executable = true;
  destination = "/bin/${name}";
  text = ''
    #!${bash}/bin/bash

    for i in ${lib.concatStringsSep " " env}; do
      export PATH="$i/bin:$PATH"
    done

    exec ${script} $@
  '';
}