all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pierre Neidhardt <ambrevar@gmail.com>
To: Arnaud B <arnaud.beaudhuin@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: Trying to define a package
Date: Mon, 02 Apr 2018 19:53:11 +0530	[thread overview]
Message-ID: <878ta5r8kw.fsf@gmail.com> (raw)
In-Reply-To: <CAAD90k8PWOM=kLQxPhA1DW80MaN9Rd9s0xDSJ3DQ5eOSFZTmTw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1233 bytes --]


Arnaud B <arnaud.beaudhuin@gmail.com> writes:

> The thing is that I can not debug the build process, even though I use the
> --keep-failed option : I'm not getting a temp build directory
> (/tmp/guix-build-...) as I expect :

This is so because it fails too early, that is, before it builds.

The error is that when using `-f`, guix build _evaluates_ the target
file and builds the _result_.  See `guix build --help`.

The `define-public` does not return a `package`, hence the error.
Simply remove the `define-public` and it should work.

Alternatively, you can place your file in a folder pointed by
GUIX_PACKAGE_PATH, leave the `define-public` and build with `guix build
freefilesync --keep-failed`.

Don't forget that the declared module must match the path, so if you
stick to (gnu packages freefilesync) place the file in
$GUIX_PACKAGE_PATH/gnu/packages/freefilesync.scm.

> One thing to add is that the downloaded source file is not tar.gz file
> format but zip file, perhaps that's part of the problem ?

I think you need

    (native-inputs
     `(("unzip" ,unzip)))

And add the (gnu packages compression) module.

A nit: the package name should be lowercase I think.

Love the description, haha! :)

--
Pierre Neidhardt

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

  reply	other threads:[~2018-04-02 14:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-02 11:50 Trying to define a package Arnaud B
2018-04-02 14:23 ` Pierre Neidhardt [this message]
2018-04-02 16:18   ` Oleg Pykhalov
2018-04-02 19:53     ` Arnaud B
2018-04-03 17:14       ` Arnaud B
2018-04-03 17:38         ` Pierre Neidhardt
2018-04-03 19:27         ` Thomas Sigurdsen
2018-04-03 19:41           ` Thomas Sigurdsen
2018-04-03 21:18             ` Arnaud B
2018-04-03 21:54               ` Arnaud B

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878ta5r8kw.fsf@gmail.com \
    --to=ambrevar@gmail.com \
    --cc=arnaud.beaudhuin@gmail.com \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.