mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
graph: Support package transformation options.
* guix/scripts/graph.scm (%options): Append %TRANSFORMATION-OPTIONS. (show-help): Call 'show-transformation-options-help'. (guix-graph): Call 'options->transformation' and use it. * tests/guix-graph.sh: Add test. * doc/guix.texi (Invoking guix graph): Document it.
This commit is contained in:
parent
7de9471707
commit
3e962e59d8
3 changed files with 78 additions and 46 deletions
|
@ -1,5 +1,5 @@
|
|||
# GNU Guix --- Functional package management for GNU
|
||||
# Copyright © 2015, 2016 Ludovic Courtès <ludo@gnu.org>
|
||||
# Copyright © 2015, 2016, 2019 Ludovic Courtès <ludo@gnu.org>
|
||||
#
|
||||
# This file is part of GNU Guix.
|
||||
#
|
||||
|
@ -53,3 +53,9 @@ cmp "$tmpfile1" "$tmpfile2"
|
|||
guix graph -t derivation coreutils > "$tmpfile1"
|
||||
guix graph -t derivation `guix build -d coreutils` > "$tmpfile2"
|
||||
cmp "$tmpfile1" "$tmpfile2"
|
||||
|
||||
# Try package transformation options.
|
||||
guix graph git | grep 'label = "openssl'
|
||||
guix graph git --with-input=openssl=libressl | grep 'label = "libressl'
|
||||
if guix graph git --with-input=openssl=libressl | grep 'label = "openssl'
|
||||
then false; else true; fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue