aboutsummaryrefslogtreecommitdiff
#!/bin/sh

# GNU Guix --- Functional package management for GNU
# Copyright © 2012, 2013, 2014, 2015, 2017, 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
# Copyright © 2017 Eric Bavier <bavier@cray.com>
#
# This file is part of GNU Guix.
#
# GNU Guix 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.
#
# GNU Guix 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 GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

# Usage: ./pre-inst-env COMMAND ARG...
#
# Run COMMAND in a pre-installation environment.  Typical use is
# "./pre-inst-env guix build hello".

# By default we may end up with absolute directory names that contain '..',
# which get into $GUILE_LOAD_PATH, leading to '..' in the module file names
# recorded by Guile.  To avoid that, make sure we get a real absolute
# directory name.  Additionally, use '-P' to get the canonical directory name
# so that Guile's 'relative' %file-port-name-canonicalization can actually
# work (see <http://bugs.gnu.org/17935>.)
abs_top_srcdir="`cd "@abs_top_srcdir@" > /dev/null; pwd -P`"
abs_top_builddir="`cd "@abs_top_builddir@" > /dev/null; pwd -P`"

GUILE_LOAD_COMPILED_PATH="$abs_top_builddir${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH"
GUILE_LOAD_PATH="$abs_top_builddir:$abs_top_srcdir${GUILE_LOAD_PATH:+:}$GUILE_LOAD_PATH"
export GUILE_LOAD_COMPILED_PATH GUILE_LOAD_PATH

# Define $PATH so that `guix' and friends are easily found.

PATH="$abs_top_builddir/scripts:$abs_top_builddir:$PATH"
export PATH

# The daemon invokes 'guix'; tell it which one to use.
GUIX="$abs_top_builddir/scripts/guix"
export GUIX

# Define $GUIX_UNINSTALLED to prevent `guix' from
# prepending @guilemoduledir@ to the Guile load paths.

GUIX_UNINSTALLED=1
export GUIX_UNINSTALLED

exec "$@"
xec, initialize-database, call-with-database): New procedures. (with-database): Rewrite in terms of 'call-with-database'. * tests/store-database.scm ("new database"): New test. * guix/self.scm (compiled-guix)[*core-modules*]: Add 'schema.sql' to #:extra-files. Ludovic Courtès 2018-06-08build: Do not add all of $(BUILT_SOURCES) to $(CLEANFILES)....Reported by Gábor Boskovits <boskovits@gmail.com>. Fixes <https://bugs.gnu.org/31700>. * nix/local.mk (CLEANFILES): Add nothing but schema.sql.hh. Ludovic Courtès 2.0-1.cabe0a3....* gnu/packages/firmware.scm (arm-trusted-firmware-pine64-plus): Use platform name from upstream ("sun50i_a64"). [version]: Update to 2.0-1.cabe0a3, [source](uri): Use upstream git repository. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Vagrant Cascadian 2018-08-28gnu: seabios: Update source URI....* gnu/packages/firmware.scm (seabios)[source](uri): Download from seabios.org. Marius Bakke 2018-06-11gnu: Add ovmf-arm....* gnu/packages/firmware.scm (ovmf-arm): New variable. Efraim Flashner 2018-06-11gnu: Add ovmf-aarch64....* gnu/packages/firmware.scm (ovmf-aarch64): New variable. Efraim Flashner 2018-06-07gnu: seabios: Return #t from all phases....* gnu/packages/firmware.scm (seabios)[arguments]: Return #t from the ‘install’ phase. Tobias Geerinckx-Rice 2018-06-07gnu: ovmf: Simplify build....* gnu/packages/firmware.scm (ovmf)[arguments]: Change custom 'build-ia32 phase to replace 'build. Remove unneeded substitutions in 'configure, 'build and 'build-x64. Shorten 'build and 'build-x64 phases. Efraim Flashner 2018-05-29system: Add u-boot-puma-rk3399....* gnu/packages/bootloaders.scm (u-boot-puma-rk3399): New variable. (make-u-boot-package)[arguments]: Add '.rksd' files to the files installed during custom 'install phase. * gnu/bootloader/u-boot.scm (u-boot-puma-rk3399-bootloader): New exported variable. * gnu/system/install.scm (rk3399-puma-installation-os): New exported variable. * gnu/packages/firmware.scm (arm-trusted-firmware-puma-rk3399): New variable. (rk3399-cortex-m0): New variable. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org> Vagrant Cascadian 2018-03-24gnu: arm-trusted-firmware-pine64-plus: New variable....* gnu/packages/firmware.scm (arm-trusted-firmware-pine64-plus): New variable. Efraim Flashner 2018-03-24gnu: make-arm-trusted-firmware: New procedure....* gnu/packages/firmware.scm (make-arm-trusted-firmware): New procedure. Efraim Flashner 2018-03-06gnu: ovmf: Fix build and add FIXME....* gnu/packages/firmware.scm (ovmf): Replace 'invoke' with 'system*'. Add FIXME about failing script. Rutger Helling 2018-03-02gnu: ath9k-htc-firmware: Use INSTALL-FILE....* gnu/packages/firmware.scm (ath9k-htc-firmware)[arguments]: Substitute INSTALL-FILE for COPY-FILE with MKDIR-P. Tobias Geerinckx-Rice 2018-03-02gnu: ovmf: Update phase style....* gnu/packages/firmware.scm (ovmf): Substitute INVOKE for SYSTEM* and end phases with #t. Tobias Geerinckx-Rice 2018-03-02gnu: ovmf: Use HTTPS home page....* gnu/packages/firmware.scm (ovmf)[home-page]: Use HTTPS. Tobias Geerinckx-Rice 2018-03-02gnu: b43-tools: Use HTTPS home page....* gnu/packages/firmware.scm (b43-tools)[home-page]: Use HTTPS. Tobias Geerinckx-Rice 2018-03-02gnu: b43-tools: Update phase style....* gnu/packages/firmware.scm (b43-tools)[arguments]: Substitute INVOKE for SYSTEM* and FOR-EACH for EVERY, and end phases with #t. Tobias Geerinckx-Rice 2018-03-02gnu: b43-tools: Update to 0.0.0-1.27892ef....* gnu/packages/firmware.scm (b43-tools): Update to 0.0.0-1.27892ef. [version]: Use our standard versioning scheme. Tobias Geerinckx-Rice 2017-12-27gnu: seabios: Update to 1.11.0....* gnu/packages/firmware.scm (seabios): Update to 1.11.0. Marius Bakke