1
2
3
4
5
6
7
(use-modules (gnu) (guix) (gnu packages bash))

(define (find-culprits drv)
    (filter (lambda (i) (not (substitutable-derivation? i)))
    (map derivation-input-derivation (derivation-inputs drv))))

(find-culprits (package-derivation store bash-minimal))