unofficial mirror of guix-devel@gnu.org 
 help / color / 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, back to index

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

unofficial mirror of guix-devel@gnu.org 

Archives are clonable:
	git clone --mirror https://yhetil.org/guix-devel/0 guix-devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-devel guix-devel/ https://yhetil.org/guix-devel \
		guix-devel@gnu.org
	public-inbox-index guix-devel

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.devel
	nntp://news.gmane.io/gmane.comp.gnu.guix.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git