GNU bug report logs -
#43458
[PATCH] guix: build: Add a hint for unspecified value
Previous Next
Reported by: Julien Lepiller <julien <at> lepiller.eu>
Date: Wed, 16 Sep 2020 21:41:01 UTC
Severity: normal
Tags: patch
Done: Julien Lepiller <julien <at> lepiller.eu>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Julien Lepiller <julien <at> lepiller.eu> skribis:
>>From b29a325ef52d402c9618bfe9f02e478134297c0f Mon Sep 17 00:00:00 2001
> From: Julien Lepiller <julien <at> lepiller.eu>
> Date: Wed, 16 Sep 2020 23:32:00 +0200
> Subject: [PATCH] guix: build: Add a hint for unspecified value.
^
I tend to use “guix build:” as the prefix for this file.
> * guix/scripts/build.scm (options->things-to-build): Add a hint when we
> cannot build something.
Great idea!
> + (raise (make-compound-condition
> + (formatted-message (G_ "~s: not something we can build~%") x)
> + (condition
> + (&fix-hint
> + (hint
> + (if (unspecified? x)
> + (G_ "If you build from a file, make sure the last scheme
> +expression returns a package value. @code{define-public} defines a variable,
> +but returns #<unspecified>. To fix this, add a scheme expression at the end of
^
@code
> +the file that consists only of the package's variable name you defined. ex:
s/. ex:/as in this example:/
> +@example
> +(define-public my-package
> + (package
> + ...))
> +
> +my-package
> +@end example")
> + (G_ "If you build from a file, make sure the last scheme
> +expression returns a package, gexp, derivation value or a list of such
> +values.")))))))))
s/derivation value/derivation/
Also s/scheme/Scheme/ throughout.
OK with these changes, thank you!
Ludo’.
This bug report was last modified 4 years and 286 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.