From 88d3b34ccea3bb1121836ed6028ddd06c0f34ff1 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 19 Jul 2015 10:16:41 -0400 Subject: Add GNU Guix development environment helper. * package.scm: New file. * README.md: Document it. --- README.md | 13 ++++++++++--- package.scm | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 3 deletions(-) create mode 100644 package.scm 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 +;;; +;;; 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 . + +;;; 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+)) -- cgit v1.2.3