Last-Modified: Fri, 07 Feb 2025 09:36:35 GMT
Expires: Fri, 07 Feb 2025 09:51:35 GMT

<!DOCTYPE html>
<html lang='en'>
<head>
<title>guix - Wojtek's customized Guix</title>
<meta name='generator' content='cgit v1.2.3'/>
<meta name='robots' content='noindex, nofollow'/>
<link rel='stylesheet' type='text/css' href='/cgit-static/cgit.css'/>
<link rel='stylesheet' type='text/css' href='/cgit-static/better-cgit-markdown-heading-color.css'/>
<link rel='shortcut icon' href='/cgit-static/favicon.ico'/>
<link rel='alternate' title='Atom feed' href='https://git.koszko.org/guix/atom/?h=koszko' type='application/atom+xml'/>
</head>
<body>
<div id='cgit'><table id='header'>
<tr>
<td class='logo' rowspan='2'><a href='/'><img src='https://git.koszko.org/cgit-static/cgit.png' alt='cgit logo'/></a></td>
<td class='main'><a href='/'>index</a> : <a href='/guix/'>guix</a></td><td class='form'><form method='get'>
<input type='hidden' name='id' value='053b10c3ef2df7ea80556ab9b2c93d0bf88094f2'/><select name='h' onchange='this.form.submit();'>
<option value='koszko' selected='selected'>koszko</option>
<option value='koszko-scripts'>koszko-scripts</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>Wojtek's customized Guix</td><td class='sub right'></td></tr></table>
<table class='tabs'><tr><td>
<a class='active' href='/guix/about/'>about</a><a href='/guix/'>summary</a><a href='/guix/refs/?id=053b10c3ef2df7ea80556ab9b2c93d0bf88094f2'>refs</a><a href='/guix/log/'>log</a><a href='/guix/tree/?id=053b10c3ef2df7ea80556ab9b2c93d0bf88094f2'>tree</a><a href='/guix/commit/?id=053b10c3ef2df7ea80556ab9b2c93d0bf88094f2'>commit</a><a href='/guix/diff/?id=053b10c3ef2df7ea80556ab9b2c93d0bf88094f2'>diff</a></td><td class='form'><form class='right' method='get' action='/guix/log/'>
<input type='hidden' name='id' value='053b10c3ef2df7ea80556ab9b2c93d0bf88094f2'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='content'><div id='summary'><pre>
#!/bin/sh

# GNU Guix --- Functional package management for GNU
# Copyright © 2012, 2013, 2014, 2015, 2017, 2018, 2019, 2020 Ludovic Courtès &lt;ludo@gnu.org&gt;
# Copyright © 2017 Eric Bavier &lt;bavier@cray.com&gt;
#
# 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 &lt;http://www.gnu.org/licenses/&gt;.

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

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

GUILE_LOAD_COMPILED_PATH=&quot;$abs_top_builddir${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH&quot;
GUILE_LOAD_PATH=&quot;$abs_top_builddir:$abs_top_srcdir${GUILE_LOAD_PATH:+:}$GUILE_LOAD_PATH&quot;
export GUILE_LOAD_COMPILED_PATH GUILE_LOAD_PATH

# Define $PATH so that `guix&apos; and friends are easily found.

PATH=&quot;$abs_top_builddir/scripts:$abs_top_builddir:$PATH&quot;
export PATH

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

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

GUIX_UNINSTALLED=1
export GUIX_UNINSTALLED

exec &quot;$@&quot;
</pre>
</div></div> <!-- class=content -->
                         <div class=footer>generated by
                             <a href="https://git.zx2c4.com/cgit/about/">
                                 cgit
                             </a>
                         </div>
                        </div> <!-- id=cgit -->
</body>
</html>
