build: Add a wrapper to 'guix environment'.

* build-aux/guix-env: New file.
* configure.ac: Require it.
This commit is contained in:
Mathieu Lirzin 2016-08-02 18:59:06 +02:00
parent c9223b6d29
commit 8525c8422c
No known key found for this signature in database
GPG Key ID: 0ADEE10094604D37
2 changed files with 10 additions and 0 deletions

9
build-aux/guix-env Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
# Build an environment that includes all the regular and development
# dependencies of Cuirass.
set -e -x
guix environment --ad-hoc \
autoconf automake bash coreutils findutils gawk git grep \
guile guile-json guile-sqlite3 guix gzip less libgcrypt make \
perl pkg-config sed sqlite tar "$@"

View File

@ -2,6 +2,7 @@ AC_PREREQ([2.61])
AC_INIT([Cuirass], [0.0.1], [bug-guix@gnu.org])
AC_CONFIG_SRCDIR([bin/cuirass.in])
AC_CONFIG_AUX_DIR([build-aux])
AC_REQUIRE_AUX_FILE([guix-env])
AC_REQUIRE_AUX_FILE([test-driver.scm])
AM_INIT_AUTOMAKE([foreign subdir-objects -Wall])
AM_SILENT_RULES([yes]) # enables silent rules by default