summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2015-07-19 10:16:41 -0400
committerDavid Thompson <dthompson2@worcester.edu>2015-07-19 10:16:41 -0400
commit88d3b34ccea3bb1121836ed6028ddd06c0f34ff1 (patch)
tree7ca4ceb8ec2db1d53ff54a48f1ce0fea9227238b
parent07d47e256815d0c4b902646832a355657727807e (diff)
Add GNU Guix development environment helper.
* package.scm: New file. * README.md: Document it.
-rw-r--r--README.md13
-rw-r--r--package.scm47
2 files changed, 57 insertions, 3 deletions
diff --git a/README.md b/README.md
index 5243c54..954312f 100644
--- a/README.md
+++ b/README.md
@@ -50,16 +50,23 @@ Requirements
GNU Guile >= 2.0.9
-Building
---------
+Building from Git
+-----------------
Haunt uses the familiar GNU build system. GNU automake, autoconf, and
-make are required to build from source.
+make are required to build from a git checkout.
```
./bootstrap && ./configure && make
```
+GNU Guix users can create a build environment with all necessary
+dependencies using the handy `guix environment` tool:
+
+```
+guix environment -l package.scm
+```
+
License
-------
diff --git a/package.scm b/package.scm
new file mode 100644
index 0000000..7c8f25f
--- /dev/null
+++ b/package.scm
@@ -0,0 +1,47 @@
+;;; Haunt --- Static site generator for GNU Guile
+;;; Copyright © 2015 David Thompson <davet@gnu.org>
+;;;
+;;; This file is part of Haunt.
+;;;
+;;; Haunt is free software; you can redistribute it and/or modify it
+;;; under the terms of the GNU General Public License as published by
+;;; the Free Software Foundation; either version 3 of the License, or
+;;; (at your option) any later version.
+;;;
+;;; Haunt is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+;;; General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with Haunt. If not, see <http://www.gnu.org/licenses/>.
+
+;;; Commentary:
+;;
+;; Development environment for GNU Guix.
+;;
+;;; Code:
+
+(use-modules (guix packages)
+ (guix licenses)
+ (guix build-system gnu)
+ (gnu packages)
+ (gnu packages autotools)
+ (gnu packages guile))
+
+(package
+ (name "haunt")
+ (version "0.0")
+ (source #f)
+ (build-system gnu-build-system)
+ (native-inputs
+ `(("autoconf" ,autoconf)
+ ("automake" ,automake)))
+ (inputs
+ `(("guile" ,guile-2.0)))
+ (synopsis "Functional, composable static site generator")
+ (description "Haunt is a static site generator written in Guile
+Scheme. Haunt features a functional build system and an extensible
+interface for reading site content in any format.")
+ (home-page "https://git.dthompson.us/haunt.git")
+ (license gpl3+))