From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WCwzOR/DTGJoIAAAgWs5BA (envelope-from ) for ; Wed, 06 Apr 2022 00:30:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id KMYhMR/DTGLx3AAAG6o9tA (envelope-from ) for ; Wed, 06 Apr 2022 00:30:55 +0200 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 560C31BAAF for ; Wed, 6 Apr 2022 00:30:55 +0200 (CEST) Received: from localhost ([::1]:51174 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nbrhO-0002gx-7Q for larch@yhetil.org; Tue, 05 Apr 2022 18:30:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58696) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbrgf-0002gC-2s for guix-devel@gnu.org; Tue, 05 Apr 2022 18:30:09 -0400 Received: from mx1.riseup.net ([198.252.153.129]:42444) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbrgc-0001FM-TF for guix-devel@gnu.org; Tue, 05 Apr 2022 18:30:08 -0400 Received: from fews2.riseup.net (fews2-pn.riseup.net [10.0.1.84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4KY2QN4h4pzDxnS for ; Tue, 5 Apr 2022 15:30:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1649197804; bh=luozgYnYdo53bkwqYoZznTooS4JBPDdrpT39MPXFVcc=; h=Date:From:To:Subject:In-Reply-To:References:From; b=PO7Ip5/It14IFhCwknjKS8ULNjuISA6/Ph/0QsdupaPr8Shf7NaHOGpmnF5LZjNLJ 2KxD/SQkFTdnlh7LH1w6nPY5Sk53zVtpu03eUcEt2V/hv4+eaby/7EcLUYnxyuyQjz EradU/Xj1Vuk+osEawSt+A0KItxXa+/G/+AqReFM= X-Riseup-User-ID: 8FBA62D9649BF4499C5690145CAB7BC1A94BD167CCA58631D5BB5A647C581A8D Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews2.riseup.net (Postfix) with ESMTPSA id 4KY2QN08g9z1yWb for ; Tue, 5 Apr 2022 15:30:03 -0700 (PDT) Date: Wed, 6 Apr 2022 00:28:29 +0200 From: raingloom To: guix-devel@gnu.org Subject: Re: Building hexyl (a rust app) without cargo, with antioxidant-build-system Message-ID: <20220406002829.3f48dd37@riseup.net> In-Reply-To: <64447e47f2f6233f4542783d3943a61ffbfc4618.camel@telenet.be> References: <6312dfb8-b33f-125f-85e8-2fbe19ee1b87@brendan.scot> <64447e47f2f6233f4542783d3943a61ffbfc4618.camel@telenet.be> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1649197855; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=b0vj1Cfq6tKhodNEueVXtBzrgR1m3I78GTeLzbqdlBQ=; b=HUJOjuKzi9Z7KnqpZyY8ysjQ8wupptMGwuuPQBcK5gBBKE6bxngzgWKYBhudAcL3A/3Rjp q0NzDk07JOUX7p9M18CHCeBa4QnX+4Lg93KvAsEvH1zPeOApP/NJPt1MWAkhZfSDOVCEKR EsQ3foZu3tZyLTGUjz+S1knQ+C8a35bheSaWu1Fi+vI7B5W+5OoCLe5SDUtYvYcoNzCSqf W6FRerp/sEpMH5KPXRMmZJxxA0O1OeIdjaROckBtVWSE2Gx3n+XAbAGhbzLcDDk5G++3FM fXXY2qF1oJQfXyJ9ewFO0+0+jnJC7wUmbM/KXkNCpn1KD/LG+B0FE6O1tyGOKg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649197855; a=rsa-sha256; cv=none; b=Nd22Ui5PGhdFbsL83b7JD1J8uOzCRsDxoTjHwYcEbgE6NoMI79Zqg3a3S+2fcmtE4PjhSS mmxQLJYimU4a67zRK6r1i/qhNTuufOhTaWte8Er/2SsxrewXsDcYA7G7ed88NElBtnVZx9 T/hJlgSJXW1tfv7cYDJDla5EVsnu8aDHSTCaZX5u7EpDy2MtgDm6nCVsceaWDx7PHPHsIl IxxrVzJE2Et7yOdEwBziQZjlvDj5+1VRnD4phxvCZS0jRuUoQHgtiM9V1TRC3Nef1DakLB y5gdlI5pMlGwnoE3NSrpadkE90i2V6DvXFKpETZcziwbH5fMmOdx6Ca0qxH2Aw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b="PO7Ip5/I"; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -7.67 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b="PO7Ip5/I"; dmarc=pass (policy=none) header.from=riseup.net; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 560C31BAAF X-Spam-Score: -7.67 X-Migadu-Scanner: scn0.migadu.com X-TUID: fxSKNa5XRBy8 On Mon, 04 Apr 2022 11:26:45 +0200 Maxime Devos wrote: > Brendan Tildesley schreef op ma 04-04-2022 om 15:10 [+1000]: > > =C2=A0I would have called it cargone. > > =C2=A0 > > =C2=A0Do you believe sidestepping cargo all together like this is a good > > long term strategy? =C2=A0In particular that importing packages will > > still be easy.=C2=A0 =20 >=20 > The package definitions look almost the same, except for: >=20 > * #:cargo-inputs and #:cargo-development-inputs are moved to > 'inputs'/'propagated-inputs' and 'native-inputs' > * For a few packages, #:features ~'(...) needs to be added > * antioxidant-build-system doesn't look at version numbers, > so the numbers of variants of packages that needs to be defined > could perhaps be reduced > * Cycles are not supported >=20 > The fourth point might make things difficult though I have some ideas > on how to resolve it (without simply disabling tests) (TBI!).=20 > Otherwise, I don't see much complications with importing packages. >=20 > Greetings, > Maxime. I'm also a bit worried with the trend of Guix trying to duplicate functionality already present in language package managers and config file formats. It creates a two-sources-of-truth situation. Trying to keep one up to date with the other can be an issue, this is why I didn't create a custom record type for Yggdrasil config files and just used a generic JSON converter. Which paid off, since there were in fact changes in the config fields between versions. Will this build system avoid that issue as well? I guess if the data it operates on has truly stable semantics, then writing an independent implementation is not as big a problem, since once written and debugged, it won't need to change. (And getting rid of cargo would be nice for Rust dev on Guix.)