unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Arnaud B <arnaud.beaudhuin@gmail.com>
To: help-guix@gnu.org
Subject: Trying to define a package
Date: Mon, 2 Apr 2018 13:50:35 +0200	[thread overview]
Message-ID: <CAAD90k8PWOM=kLQxPhA1DW80MaN9Rd9s0xDSJ3DQ5eOSFZTmTw@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1380 bytes --]

Hello all,

I'm trying to create a package definition, following mainly the manual
pages :
- Packaging Guidelines
<https://www.gnu.org/software/guix/manual/html_node/Packaging-Guidelines.html#Packaging-Guidelines>
- Defining-Packages
<https://www.gnu.org/software/guix/manual/html_node/Defining-Packages.html#Defining-Packages>
- and Debugging-Build-Failures
<https://www.gnu.org/software/guix/manual/html_node/Debugging-Build-Failures.html#Debugging-Build-Failures>

In the attached .scm file, here is what I gathered it might look like as a
first try.
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 :
arnaud@brix ~$ guix build -f /home/arnaud/freefilesync.scm --keep-failed
guix build: error: #<unspecified>: not something we can build
arnaud@brix ~$ cd /tmp/
babel-10188XJP/      guix-inst/           mozilla_arnaud0/
emacs-guix-101889w1/ icecat_arnaud/       .overlayfs-workdir/
.esd-1000/           .ICE-unix/           .X11-unix/
arnaud@brix ~$
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 ?
This is a GuixSD install with guix pull done yesterday.

Thanks in advance
Arnaud
<https://www.gnu.org/software/guix/manual/html_node/Defining-Packages.html#Defining-Packages>

[-- Attachment #1.2: Type: text/html, Size: 2218 bytes --]

[-- Attachment #2: freefilesync.scm --]
[-- Type: text/x-scheme, Size: 917 bytes --]

(define-module (gnu packages freefilesync)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system gnu)
  #:use-module (guix licenses)
  #:use-module (gnu packages gawk))

(define-public freefilesync
  (package
            (name "FreeFileSync")
            (version "9.9")
            (source (origin
                      (method url-fetch)
                      (uri "https://www.freefilesync.org/download/FreeFileSync_9.9_Source.zip")
		      (sha256
                         (base32
                            "0w59p5wkazrmyh9nq02wcpq4icb8k8w12f1mbm6a9mbbak4d7va3"))))
            (build-system gnu-build-system)
            (synopsis "FreeFileSync, Open Source File Synchroniszation")
            (description "multiplatform, C++, open source but comes with malware according to some")
            (home-page "https://www.freefilesync.org/")
            (license gpl3)))

             reply	other threads:[~2018-04-02 11:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-02 11:50 Arnaud B [this message]
2018-04-02 14:23 ` Trying to define a package Pierre Neidhardt
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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to='CAAD90k8PWOM=kLQxPhA1DW80MaN9Rd9s0xDSJ3DQ5eOSFZTmTw@mail.gmail.com' \
    --to=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.
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).