From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 4O2RNgNl6F+PSAAA0tVLHw (envelope-from ) for ; Sun, 27 Dec 2020 10:42:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KLzzMQNl6F9VXAAAB5/wlQ (envelope-from ) for ; Sun, 27 Dec 2020 10:42:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8B8AC940149 for ; Sun, 27 Dec 2020 10:42:11 +0000 (UTC) Received: from localhost ([::1]:35498 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktTV4-0007c6-HT for larch@yhetil.org; Sun, 27 Dec 2020 05:42:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57088) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktTUw-0007bm-JV for bug-guix@gnu.org; Sun, 27 Dec 2020 05:42:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48800) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ktTUw-0000YE-C8 for bug-guix@gnu.org; Sun, 27 Dec 2020 05:42:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ktTUw-0000WU-B5 for bug-guix@gnu.org; Sun, 27 Dec 2020 05:42:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#45453: Error when I try to build a package using a JSON definition Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 27 Dec 2020 10:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45453 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Julien Lepiller X-Debbugs-Original-Cc: bug-guix@gnu.org, Ryan Prior , 45453@debbugs.gnu.org Received: via spool by 45453-submit@debbugs.gnu.org id=B45453.16090656771947 (code B ref 45453); Sun, 27 Dec 2020 10:42:02 +0000 Received: (at 45453) by debbugs.gnu.org; 27 Dec 2020 10:41:17 +0000 Received: from localhost ([127.0.0.1]:60345 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktTUC-0000VL-Pm for submit@debbugs.gnu.org; Sun, 27 Dec 2020 05:41:17 -0500 Received: from sender3-of-o53.zoho.com ([136.143.184.53]:21381) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ktTU9-0000VC-T6 for 45453@debbugs.gnu.org; Sun, 27 Dec 2020 05:41:14 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1609065662; cv=none; d=zohomail.com; s=zohoarc; b=Qky0HqxgCVagoCvpqt+wpVE3cDNUYLAjf3dDBTCEt0B1XJjr44U+w8QNnWtsVLJWKyUn7OEwOXl65GukIAn0hqmPLfPpikCsSINcjV5tj2EiJLFkfFDtWhs/XB4ryOtOpmSjQm7eEN9KNxuBMlWXZQEqFpCgSGFK9FQIU7IR9Do= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1609065662; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=n95KzvMqCckH5MMpuCa6XhKbinD1o1ut5CN+jFfk8xI=; b=Gx+THs/veEvtDgNC7d/z7CXe93OHCk+c0Oayy8D6dAQB+YyCeRw1vJgr+H2ruCj7MIg42dr1zNiFHlBFkVAYkc7dZWCnlQCK64gvQ6akYOjrscHHRwpQtBUWuw4tGBC0T+JXjZdyBzsqPqqKQVJfI3sGRiRXLE7Cyob3EvDSQIg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1609065662; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=n95KzvMqCckH5MMpuCa6XhKbinD1o1ut5CN+jFfk8xI=; b=KwvwxK6gNOBxuWe3GmAGekTZwkQvmQnl9WfB21cX5hqLPso8TUtx7Mvg057q50Cn uf7sqvG5PWLcw5Ex/50GVn3DSdynIF0fQ8uHWq8GbbB1urG64hhOQijqFSgK6zJl4Xr w0gvKY/JAqIvDBr5qaf5U0sTPRSAHhVBtvKb11yw= Received: from localhost (p4fd5a29e.dip0.t-ipconnect.de [79.213.162.158]) by mx.zohomail.com with SMTPS id 160906566131781.24716071260195; Sun, 27 Dec 2020 02:41:01 -0800 (PST) References: <87wnx4nkx1.fsf@protonmail.com> <182B84CA-FA45-4184-A462-96B0C28D49BE@lepiller.eu> User-agent: mu4e 1.4.13; emacs 27.1 From: Ricardo Wurmus In-reply-to: <182B84CA-FA45-4184-A462-96B0C28D49BE@lepiller.eu> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Sun, 27 Dec 2020 11:40:58 +0100 Message-ID: <87im8nmszp.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: rprior@protonmail.com, 45453@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 0.68 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=elephly.net header.s=zoho header.b=KwvwxK6g; arc=reject (signature check failed: fail, {[1] = sig:zohomail.com:reject}); dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 8B8AC940149 X-Spam-Score: 0.68 X-Migadu-Scanner: scn0.migadu.com X-TUID: QAvRlWeb9E+P Hey Julien, > I'm surprised guix builds from a json file=E2=80=A6 it=E2=80=99s a little known feature. I added it a long time ago, half in j= est, half in the realization that this removes a common superficial objection to Guix. > If not, it could be that the source derivation is not > fixed-output. After all, the json definition doesn't specify a hash > (it's not even an origin record). Again I'm confused by the fact that > guix lets you specify packages with json, so I'm not sure how that > part is converted to a package object. Is that documented? Yes, it=E2=80=99s all documented. The manual has to indexed locations for =E2=80=9CJSON=E2=80=9D. One of them says that you don=E2=80=99t need to sp= ecify an origin record, but you can if you feel like it: --8<---------------cut here---------------start------------->8--- The importer also supports a more explicit source definition using the common fields for =E2=80=98=E2=80=99 records: { ... "source": { "method": "url-fetch", "uri": "mirror://gnu/hello/hello-2.10.tar.gz", "sha256": { "base32": "0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89n= dq1i" } } ... } --8<---------------cut here---------------end--------------->8--- --=20 Ricardo