mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
guix gc: Add '--derivers'.
* guix/scripts/gc.scm (show-help, %options): Add '--derivers'. (guix-gc): Handle 'list-derivers'. * tests/guix-gc.sh: Add test. * doc/guix.texi (Invoking guix gc): Document it.
This commit is contained in:
parent
b06a70e05d
commit
8980eea5ab
3 changed files with 31 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
# GNU Guix --- Functional package management for GNU
|
||||
# Copyright © 2013, 2015, 2017 Ludovic Courtès <ludo@gnu.org>
|
||||
# Copyright © 2013, 2015, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
|
||||
#
|
||||
# This file is part of GNU Guix.
|
||||
#
|
||||
|
@ -54,6 +54,9 @@ guix gc --references "$out/bin/guile"
|
|||
if guix gc --references /dev/null;
|
||||
then false; else true; fi
|
||||
|
||||
# Check derivers.
|
||||
guix gc --derivers "$out" | grep "$drv"
|
||||
|
||||
# Add then reclaim a .drv file.
|
||||
drv="`guix build idutils -d`"
|
||||
test -f "$drv"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue