Hi, On Mon, 21 Nov 2022 at 19:06, jgart <[email protected]> wrote:
> is there a command to build all dependents of a package? [...] > $ guix refresh python-identify -l > Building the following 14 packages would ensure 28 dependent packages > are rebuilt: [email protected] [email protected] > [email protected] > [email protected] [email protected] [email protected] > [email protected] [email protected] [email protected] > [email protected] [email protected] [email protected] > [email protected] [email protected] $ guix build $(guix refresh python-identify -l | cut -f2 -d':') > I'd also like to filter out packages from guixrus. [email protected] is in guixrus. >From the command-line, it can be tedious to filter. I would go with a manifest. Although, I am always confused by unexported bindings. This, (define list-dependents (@@ (guix scripts refresh) list-dependents)) returns, --8<---------------cut here---------------start------------->8--- /tmp/manifest.scm:6:3: error: list-dependents: unbound variable hint: Did you forget a `use-modules' form? --8<---------------cut here---------------end--------------->8--- but that’s the way I would do: list dependent packages, then apply some filter based on module name (location). Cheers, simon
