···676 Defines the address and other parameters of the upstream servers.
677 '';
678 default = {};
0679 };
680 extraConfig = mkOption {
681 type = types.lines;
···690 Defines a group of servers to use as proxy target.
691 '';
692 default = {};
00000000693 };
694695 virtualHosts = mkOption {
···676 Defines the address and other parameters of the upstream servers.
677 '';
678 default = {};
679+ example = { "127.0.0.1:8000" = {}; };
680 };
681 extraConfig = mkOption {
682 type = types.lines;
···691 Defines a group of servers to use as proxy target.
692 '';
693 default = {};
694+ example = literalExample ''
695+ "backend_server" = {
696+ servers = { "127.0.0.1:8000" = {}; };
697+ extraConfig = ''''
698+ keepalive 16;
699+ '''';
700+ };
701+ '';
702 };
703704 virtualHosts = mkOption {
···1+{ lib
2+, stdenv
3+, fetchurl
4+, guile
5+, guile-commonmark
6+, guile-reader
7+, makeWrapper
8+, pkg-config
9+}:
10+11+stdenv.mkDerivation rec {
12+ pname = "haunt";
13+ version = "0.2.4";
14+15+ src = fetchurl {
16+ url = "https://files.dthompson.us/${pname}/${pname}-${version}.tar.gz";
17+ hash = "sha256-zOkICg7KmJJhPWPtJRT3C9sYB1Oig1xLtgPNGe0n3xQ=";
18+ };
19+20+ nativeBuildInputs = [
21+ makeWrapper
22+ pkg-config
23+ ];
24+ buildInputs = [
25+ guile
26+ guile-commonmark
27+ guile-reader
28+ ];
29+30+ postInstall = ''
31+ wrapProgram $out/bin/haunt \
32+ --prefix GUILE_LOAD_PATH : "$out/share/guile/site:${guile-commonmark}/share/guile/site:${guile-reader}/share/guile/site" \
33+ --prefix GUILE_LOAD_COMPILED_PATH : "$out/share/guile/site:${guile-commonmark}/share/guile/site:${guile-reader}/share/guile/site"
34+ '';
35+36+ meta = with lib; {
37+ homepage = "https://dthompson.us/projects/haunt.html";
38+ description = "Guile-based static site generator";
39+ longDescription = ''
40+ Haunt is a simple, functional, hackable static site generator that gives
41+ authors the ability to treat websites as Scheme programs.
42+43+ By giving authors the full expressive power of Scheme, they are able to
44+ control every aspect of the site generation process. Haunt provides a
45+ simple, functional build system that can be easily extended for this
46+ purpose.
47+48+ Haunt has no opinion about what markup language authors should use to
49+ write posts, though it comes with support for the popular Markdown
50+ format. Likewise, Haunt has no opinion about how authors structure their
51+ sites. Though it comes with support for building simple blogs or Atom
52+ feeds, authors should feel empowered to tweak, replace, or create builders
53+ to do things that aren't provided out-of-the-box.
54+ '';
55+ license = licenses.gpl3Plus;
56+ maintainers = with maintainers; [ AndersonTorres ];
57+ platforms = guile.meta.platforms;
58+ };
59+}
···1-{ lib, stdenv, fetchurl, fetchpatch, pkg-config
2-, gperf, guile, guile-lib, libffi }:
0000000034stdenv.mkDerivation rec {
5-6 pname = "guile-reader";
7 version = "0.6.3";
89 src = fetchurl {
10- url = "http://download.savannah.nongnu.org/releases/guile-reader/${pname}-${version}.tar.gz";
11- sha256 = "sha256-OMK0ROrbuMDKt42QpE7D6/9CvUEMW4SpEBjO5+tk0rs=";
12 };
1314- nativeBuildInputs = [ pkg-config ];
15- buildInputs = [ gperf guile guile-lib libffi ];
00000001617 GUILE_SITE="${guile-lib}/share/guile/site";
1819 configureFlags = [ "--with-guilemoduledir=$(out)/share/guile/site" ];
2021 meta = with lib; {
022 description = "A simple framework for building readers for GNU Guile";
23 longDescription = ''
24- Guile-Reader is a simple framework for building readers for GNU
25- Guile.
2627- The idea is to make it easy to build procedures that extend
28- Guile's read procedure. Readers supporting various syntax
29- variants can easily be written, possibly by re-using existing
30- "token readers" of a standard Scheme readers. For example, it
31- is used to implement Skribilo's R5RS-derived document syntax.
32 '';
33- homepage = "https://www.nongnu.org/guile-reader/";
34 license = licenses.lgpl3Plus;
35 maintainers = with maintainers; [ AndersonTorres ];
36 platforms = platforms.gnu;
···1+{ lib
2+, stdenv
3+, fetchurl
4+, fetchpatch
5+, gperf
6+, guile
7+, guile-lib
8+, libffi
9+, pkg-config
10+}:
1112stdenv.mkDerivation rec {
013 pname = "guile-reader";
14 version = "0.6.3";
1516 src = fetchurl {
17+ url = "http://download.savannah.nongnu.org/releases/${pname}/${pname}-${version}.tar.gz";
18+ hash = "sha256-OMK0ROrbuMDKt42QpE7D6/9CvUEMW4SpEBjO5+tk0rs=";
19 };
2021+ nativeBuildInputs = [
22+ pkg-config
23+ ];
24+ buildInputs = [
25+ gperf
26+ guile
27+ guile-lib
28+ libffi
29+ ];
3031 GUILE_SITE="${guile-lib}/share/guile/site";
3233 configureFlags = [ "--with-guilemoduledir=$(out)/share/guile/site" ];
3435 meta = with lib; {
36+ homepage = "https://www.nongnu.org/guile-reader/";
37 description = "A simple framework for building readers for GNU Guile";
38 longDescription = ''
39+ Guile-Reader is a simple framework for building readers for GNU Guile.
04041+ The idea is to make it easy to build procedures that extend Guile's read
42+ procedure. Readers supporting various syntax variants can easily be
43+ written, possibly by re-using existing "token readers" of a standard
44+ Scheme readers. For example, it is used to implement Skribilo's
45+ R5RS-derived document syntax.
46 '';
047 license = licenses.lgpl3Plus;
48 maintainers = with maintainers; [ AndersonTorres ];
49 platforms = platforms.gnu;