From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Neidhardt Subject: Re: Trying to define a package Date: Mon, 02 Apr 2018 19:53:11 +0530 Message-ID: <878ta5r8kw.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f30Mh-0005Ef-TK for help-guix@gnu.org; Mon, 02 Apr 2018 10:23:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f30Mf-0002Tb-79 for help-guix@gnu.org; Mon, 02 Apr 2018 10:23:19 -0400 Received: from mail-pl0-x22e.google.com ([2607:f8b0:400e:c01::22e]:40865) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f30Me-0002TJ-Vp for help-guix@gnu.org; Mon, 02 Apr 2018 10:23:17 -0400 Received: by mail-pl0-x22e.google.com with SMTP id x4-v6so4294828pln.7 for ; Mon, 02 Apr 2018 07:23:16 -0700 (PDT) In-reply-to: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Arnaud B Cc: help-guix@gnu.org --=-=-= Content-Type: text/plain Arnaud B 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 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAlrCPM8ACgkQm9z0l6S7 zH956AgAjg6laTK2D7p+EP2XmTWkCI574LtVCxrtygvtRKKlwvhobUplEJYe56Dn Ab6hYMPNs8Ui8pPUYN5eInHCUdPiDmE5y/EnT5S4mDTmKr8d0jJNaGR0ChHVLFms XWs+jzEKGY7v62mPrXVe4uYlJXg1OK2ixdc1/sHsNJMTJv7npXyoUZHPM4K/22vK 04uFUIMo49Z23ADaUjveGQnCHMcmLDJErzoUkUGqR4PPc2o9m4J7rLxbJFVnZiW5 52FHDuSLVEjHEN4WEccnOz1zeb3Nj71vXcuCGeuSKUpGYY/UaHWMynvP7q0uLDkI qB1OhstdsjgiW8BYON6TcDRkurRjdw== =k7m6 -----END PGP SIGNATURE----- --=-=-=--