···11+{ lib
22+, stdenv
33+, fetchurl
44+, guile
55+, guile-commonmark
66+, guile-reader
77+, makeWrapper
88+, pkg-config
99+}:
1010+1111+stdenv.mkDerivation rec {
1212+ pname = "haunt";
1313+ version = "0.2.4";
1414+1515+ src = fetchurl {
1616+ url = "https://files.dthompson.us/${pname}/${pname}-${version}.tar.gz";
1717+ hash = "sha256-zOkICg7KmJJhPWPtJRT3C9sYB1Oig1xLtgPNGe0n3xQ=";
1818+ };
1919+2020+ nativeBuildInputs = [
2121+ makeWrapper
2222+ pkg-config
2323+ ];
2424+ buildInputs = [
2525+ guile
2626+ guile-commonmark
2727+ guile-reader
2828+ ];
2929+3030+ postInstall = ''
3131+ wrapProgram $out/bin/haunt \
3232+ --prefix GUILE_LOAD_PATH : "$out/share/guile/site:${guile-commonmark}/share/guile/site:${guile-reader}/share/guile/site" \
3333+ --prefix GUILE_LOAD_COMPILED_PATH : "$out/share/guile/site:${guile-commonmark}/share/guile/site:${guile-reader}/share/guile/site"
3434+ '';
3535+3636+ meta = with lib; {
3737+ homepage = "https://dthompson.us/projects/haunt.html";
3838+ description = "Guile-based static site generator";
3939+ longDescription = ''
4040+ Haunt is a simple, functional, hackable static site generator that gives
4141+ authors the ability to treat websites as Scheme programs.
4242+4343+ By giving authors the full expressive power of Scheme, they are able to
4444+ control every aspect of the site generation process. Haunt provides a
4545+ simple, functional build system that can be easily extended for this
4646+ purpose.
4747+4848+ Haunt has no opinion about what markup language authors should use to
4949+ write posts, though it comes with support for the popular Markdown
5050+ format. Likewise, Haunt has no opinion about how authors structure their
5151+ sites. Though it comes with support for building simple blogs or Atom
5252+ feeds, authors should feel empowered to tweak, replace, or create builders
5353+ to do things that aren't provided out-of-the-box.
5454+ '';
5555+ license = licenses.gpl3Plus;
5656+ maintainers = with maintainers; [ AndersonTorres ];
5757+ platforms = guile.meta.platforms;
5858+ };
5959+}
···11-{ lib, stdenv, fetchurl, fetchpatch, pkg-config
22-, gperf, guile, guile-lib, libffi }:
11+{ lib
22+, stdenv
33+, fetchurl
44+, fetchpatch
55+, gperf
66+, guile
77+, guile-lib
88+, libffi
99+, pkg-config
1010+}:
311412stdenv.mkDerivation rec {
55-613 pname = "guile-reader";
714 version = "0.6.3";
815916 src = fetchurl {
1010- url = "http://download.savannah.nongnu.org/releases/guile-reader/${pname}-${version}.tar.gz";
1111- sha256 = "sha256-OMK0ROrbuMDKt42QpE7D6/9CvUEMW4SpEBjO5+tk0rs=";
1717+ url = "http://download.savannah.nongnu.org/releases/${pname}/${pname}-${version}.tar.gz";
1818+ hash = "sha256-OMK0ROrbuMDKt42QpE7D6/9CvUEMW4SpEBjO5+tk0rs=";
1219 };
13201414- nativeBuildInputs = [ pkg-config ];
1515- buildInputs = [ gperf guile guile-lib libffi ];
2121+ nativeBuildInputs = [
2222+ pkg-config
2323+ ];
2424+ buildInputs = [
2525+ gperf
2626+ guile
2727+ guile-lib
2828+ libffi
2929+ ];
16301731 GUILE_SITE="${guile-lib}/share/guile/site";
18321933 configureFlags = [ "--with-guilemoduledir=$(out)/share/guile/site" ];
20342135 meta = with lib; {
3636+ homepage = "https://www.nongnu.org/guile-reader/";
2237 description = "A simple framework for building readers for GNU Guile";
2338 longDescription = ''
2424- Guile-Reader is a simple framework for building readers for GNU
2525- Guile.
3939+ Guile-Reader is a simple framework for building readers for GNU Guile.
26402727- The idea is to make it easy to build procedures that extend
2828- Guile's read procedure. Readers supporting various syntax
2929- variants can easily be written, possibly by re-using existing
3030- "token readers" of a standard Scheme readers. For example, it
3131- is used to implement Skribilo's R5RS-derived document syntax.
4141+ The idea is to make it easy to build procedures that extend Guile's read
4242+ procedure. Readers supporting various syntax variants can easily be
4343+ written, possibly by re-using existing "token readers" of a standard
4444+ Scheme readers. For example, it is used to implement Skribilo's
4545+ R5RS-derived document syntax.
3246 '';
3333- homepage = "https://www.nongnu.org/guile-reader/";
3447 license = licenses.lgpl3Plus;
3548 maintainers = with maintainers; [ AndersonTorres ];
3649 platforms = platforms.gnu;