Content-Security-Policy: default-src 'none'
Content-Type: text/plain; charset=UTF-8
Content-Length: 409
Content-Disposition: inline; filename="ed25519bis.key"
Last-Modified: Sat, 02 Nov 2024 21:27:41 GMT
Expires: Tue, 31 Oct 2034 21:27:41 GMT
ETag: "f5329105d591300a047d0a0fec313816e3d7db0a"

-----BEGIN PGP PUBLIC KEY BLOCK-----

[payload removed: 324 characters in 6 lines]
=JIU0
-----END PGP PUBLIC KEY BLOCK-----
an='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='44f32a407f9d66b8ef8af9876f9ad35558becfbb'/><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=44f32a407f9d66b8ef8af9876f9ad35558becfbb'>refs</a><a href='/guix/log/'>log</a><a href='/guix/tree/?id=44f32a407f9d66b8ef8af9876f9ad35558becfbb'>tree</a><a href='/guix/commit/?id=44f32a407f9d66b8ef8af9876f9ad35558becfbb'>commit</a><a href='/guix/diff/?id=44f32a407f9d66b8ef8af9876f9ad35558becfbb'>diff</a></td><td class='form'><form class='right' method='get' action='/guix/log/'>
<input type='hidden' name='id' value='44f32a407f9d66b8ef8af9876f9ad35558becfbb'/><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>
# GNU Guix --- Functional package management for GNU
# Copyright © 2015-2016, 2019-2020, 2022-2023 Ludovic Courtès &lt;ludo@gnu.org&gt;
# Copyright © 2019 Simon Tournier &lt;zimon.toutoune@gmail.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;.

#
# Test the &apos;guix graph&apos; command-line utility.
#

module_dir=&quot;t-guix-graph-$$&quot;
mkdir &quot;$module_dir&quot;

tmpfile1=&quot;$module_dir/t-guix-graph1-$$&quot;
tmpfile2=&quot;$module_dir/t-guix-graph2-$$&quot;
trap &apos;rm -r &quot;$module_dir&quot;&apos; EXIT


cat &gt; &quot;$module_dir/foo.scm&quot;&lt;&lt;EOF
(define-module (foo)
  #:use-module (guix packages)
  #:use-module (gnu packages base))

(define-public dummy
  (package (inherit hello)
    (name &quot;dummy&quot;)
    (version &quot;42&quot;)
    (synopsis &quot;dummy package&quot;)
    (description &quot;dummy package. Only used for testing purposes.&quot;)))
EOF


guix graph --version

for package in guile-bootstrap coreutils python
do
    for graph in package bag-emerged bag bag-with-origins
    do
	guix graph -t &quot;$graph&quot; &quot;$package&quot; | grep &quot;$package&quot;
    done
done

guix build guile-bootstrap
guix graph -t references guile-bootstrap | grep guile-bootstrap

guix graph -e &apos;(@ (gnu packages bootstrap) %bootstrap-guile)&apos; \
    | grep guile-bootstrap

guix graph -e + &amp;&amp; false

# Try passing store file names.

guix graph -t references guile-bootstrap &gt; &quot;$tmpfile1&quot;
guix graph -t references `guix build guile-bootstrap` &gt; &quot;$tmpfile2&quot;
cmp &quot;$tmpfile1&quot; &quot;$tmpfile2&quot;

# XXX: Filter the file names in the graph to work around the fact that we get
# a mixture of relative and absolute file names.
guix graph -t derivation coreutils &gt; &quot;$tmpfile1&quot;
guix graph -t derivation `guix build -d coreutils` &gt; &quot;$tmpfile2&quot;
cmp &quot;$tmpfile1&quot; &quot;$tmpfile2&quot;

# Try package transformation options.
guix graph git | grep &apos;label = &quot;openssl&apos;
guix graph git --with-input=openssl=libressl | grep &apos;label = &quot;libressl&apos;
guix graph git --with-input=openssl=libressl | grep &apos;label = &quot;openssl&apos; &amp;&amp; false

# Try --load-path
guix graph -L $module_dir dummy | grep &apos;label = &quot;dummy&apos;

# Displaying shortest paths (or lack thereof).
guix graph --path emacs vim &amp;&amp; false

path=&quot;\
emacs
cairo
gobject-introspection
libffi&quot;
test &quot;`guix graph --path emacs libffi | cut -d &apos;@&apos; -f1`&quot; = &quot;$path&quot;

# At the derivation level, there&apos;s a direct path because libffi is propagated
# via gtk+.
test &quot;`guix graph --path -t derivation emacs libffi | wc -l`&quot; -ge 2
</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>
