unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Derivation is missing output
@ 2020-06-22 14:07 Hartmut Goebel
  2020-06-25 13:45 ` Hartmut Goebel
  0 siblings, 1 reply; 2+ messages in thread
From: Hartmut Goebel @ 2020-06-22 14:07 UTC (permalink / raw)
  To: guix-devel

Hi,

I'm still working on the download and importer for hex.pm and the rebar3
build-system for Erlang. So far I made good progress, but now I stepped
over a curious issue:

The downloader is modeled like the one for git, bzr and hg, creating a
fixed script controlled by environment variables. The script is created
as expected. But the script is never run. After some debugging, I
discovered that the source package's .drv file does not define any output:

    Derivce([],[…inputs…])

What can be the reason for this?

Some background (the whole source can be found at
https://gitlab.digitalcourage.de/htgoebel/guix/-/tree/HG-rebar-build-system):

    (source
     (origin
       (method hexpm-fetch)
       (uri "https://repo.hex.pm/tarballs/getopt-1.0.1.tar")
       (sha256
        (base32 "1fhqnn4dvcil12cmqmzkmlk14lq5rn7ingld2380i6nl8v2dvm48"))))

and hexpm-fetch returns

  (mlet %store-monad ((guile (package->derivation guile system)))
    (gexp->derivation (pk (or name file-name)) build
                       … more arguments))

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Derivation is missing output
  2020-06-22 14:07 Derivation is missing output Hartmut Goebel
@ 2020-06-25 13:45 ` Hartmut Goebel
  0 siblings, 0 replies; 2+ messages in thread
From: Hartmut Goebel @ 2020-06-25 13:45 UTC (permalink / raw)
  To: guix-devel

Am 22.06.20 um 16:07 schrieb Hartmut Goebel:
> After some debugging, I
> discovered that the source package's .drv file does not define any output:
>
>     Derivce([],[…inputs…])
>
> What can be the reason for this?

For the records: This was caused be he gexp (resp. the script) not
referring to `#$outputs`. I've written `outputs` instead.

(Thanks to Ludo for pointing me to the solution)

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-25 13:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-22 14:07 Derivation is missing output Hartmut Goebel
2020-06-25 13:45 ` Hartmut Goebel

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).