unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* useful snippet for debugging a package that builds but shouldn't
@ 2021-12-27 23:57 raingloom
  0 siblings, 0 replies; only message in thread
From: raingloom @ 2021-12-27 23:57 UTC (permalink / raw)
  To: guix-devel@gnu.org

I used it to run `make localmodconfig` in a linux build, others might
find it useful as well. Should I contribute it to the cookbook or Guix
itself as well?

```
(define (error-before phase pkg)
  (package
   (inherit pkg)
   (arguments
    (substitute-keyword-arguments
        (package-arguments pkg)
      ((#:phases phases)
       `(modify-phases ,phases
          (add-before (quote ,phase) 'error-on-purpose
           (lambda _
             (error "error on purpose")))))))))
```


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-28  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-27 23:57 useful snippet for debugging a package that builds but shouldn't raingloom

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).