From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id uAQVFc/JKWfQEwEAe85BDQ:P1 (envelope-from ) for ; Tue, 05 Nov 2024 07:31:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id uAQVFc/JKWfQEwEAe85BDQ (envelope-from ) for ; Tue, 05 Nov 2024 08:31:27 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=kLuFDyn5; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20240523 header.b=MhAek9iG; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1730791887; a=rsa-sha256; cv=none; b=IzAJES+nnkygrBSsMmKEAYMibUD8WOmHRMh1iH/z3nXZH6MlreQcDLAEyRyClRnGbYTcMJ ab/5dL33+X1kWewQY9Wgy1eqzCw+oDOzSEzS+8d3rTYZxUh/YsB4BscAztG1MeBEsd9sph Rhq/n9G9TI/TD/P9DNVniVEl2a07w7wlu41W4yRGZHMKYtY+C+47lnOVCc7wEO6htUnpXI +ymFw0SGkAdPdMm+kN7fVpU7deByAIrYp7VFv4bSdjCRMuEUoiuoXrmBsUSoKuj1FPXQ2t sfczeNIuWYy55rM7ffdd4fLGabUz4rNKri5koZuhvBhL6sJxoZ9JhYQ9UTFEbw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=kLuFDyn5; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20240523 header.b=MhAek9iG; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1730791887; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=yYG798v609dpHzb4rqozt3cftiJwBtJmKkRtrJvVDsE=; b=NVBDpDHIqm5YYBw8Y4RpkLaJSBLB8bnuhAKSqkf5kPvAxCKJx+M797lZPXxQNKtz71kn7+ KH4ooJpdyf4tPIj9COaV1heyuNCS9OXmxWJzucy51unzSsXakocQd8CVMCr0aOKdDf7e2A RA2ZYa1uZPW1JEsL5hnFjxQvkS5m3c9KEswUgXRuHrwF2bG98VRn60hlehdD+CpyyJvfz/ NGRGvRdWc2Y34IWJi5SsZLj9laeNGhEmC6c5UGdxrxJoHd3XiWLCEgNWWZYV+qtAnmWjNp ApJa1n/9vOyHalzZ/iiB+ZTWdHMWsbVOjAfh2OXuaicJ4BbFkazewD+k/lJ8zg== 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 B3B6D73F04 for ; Tue, 05 Nov 2024 08:31:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t8E1q-00012l-Es; Tue, 05 Nov 2024 02:31:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t8E1n-00012S-Bf for guix-patches@gnu.org; Tue, 05 Nov 2024 02:31:03 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t8E1m-0007dI-Sh for guix-patches@gnu.org; Tue, 05 Nov 2024 02:31:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=yYG798v609dpHzb4rqozt3cftiJwBtJmKkRtrJvVDsE=; b=kLuFDyn5CLeucOfdn0xl6sUNNPQWcrU64HDB7JoI1Rri53QWeo1ALDvwzXFzsMJ/pwZLDXEgG/uZgWwHZQ7qzWexwZTVpBTHEMp8jvAh0Orv4WcCPbavtsb494Z+tqNHhusYnl2QilUTw7kXSEgCEKSmbB61brFV6PQbThVSIw3u/X4cv4M47nub+aZZ9/VExpjDdxnb+MVSXlznCP4qeDkPcduQ4SVyPujwUJJNTynG4GsSzuDEoWX55IdyFvqd/z4goyK6z8hXQrhjN0I1oxdURMNFrky7lErFMpchUZbkOmansI9rV3vBTz/CVIHIbmQrRkxlNRPQFHPD2Ljdjw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t8E1m-0005M7-Gp for guix-patches@gnu.org; Tue, 05 Nov 2024 02:31:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74078] [PATCH] gnu: Add dart Resent-From: =?UTF-8?Q?J=C3=B8rgen?= Kvalsvik Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 05 Nov 2024 07:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74078 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxim Cournoyer Cc: 74078-done@debbugs.gnu.org Received: via spool by 74078-done@debbugs.gnu.org id=D74078.173079183120573 (code D ref 74078); Tue, 05 Nov 2024 07:31:02 +0000 Received: (at 74078-done) by debbugs.gnu.org; 5 Nov 2024 07:30:31 +0000 Received: from localhost ([127.0.0.1]:43335 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8E1G-0005Ll-AO for submit@debbugs.gnu.org; Tue, 05 Nov 2024 02:30:30 -0500 Received: from mx.kolabnow.com ([212.103.80.154]:49602) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8E1B-0005Ld-PW for 74078-done@debbugs.gnu.org; Tue, 05 Nov 2024 02:30:28 -0500 Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id 64120345E3FC; Tue, 5 Nov 2024 08:30:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:content-language:references:subject:subject :mime-version:date:date:message-id:received:received:received; s=dkim20240523; t=1730791814; x=1732606215; bh=yYG798v609dpHzb4 rqozt3cftiJwBtJmKkRtrJvVDsE=; b=MhAek9iGPwHkAb1DzzMJgB5q990FgYKO yfeSEaMMqT0P15MATfpqMIFw4Z/X1OjcdUzTN08rWKRznoHVnJe5ZqHZycPNQolR 5TO8CtaESYWvRAwJiBupC1OcFAcrh2b1OjlOL+owpBtofdULVuE1BZCMKzM9AHQB Nxv8SbpCIXPdbTadx2quulTbqN2n97KWF725duIdjrQN4C2A6ekSz+cfP/F45eVU Sk9SVk5XfWxX2OuPfxR8SFm2xmIVBSmBHjdwCKO+YoQGoz1pdfox0SzMh/bb2v99 PD2Xmg/ore/7RPJFRlX/wOnBWEHsYWbCGSscYp0VH2nEzwR3Pf6pqA== X-Virus-Scanned: amavis at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out013.mykolab.com [127.0.0.1]) (amavis, port 10024) with ESMTP id gMO7Uvq970AQ; Tue, 5 Nov 2024 08:30:14 +0100 (CET) Received: from int-mx011.mykolab.com (unknown [10.9.13.11]) by mx.kolabnow.com (Postfix) with ESMTPS id C841F345E3FB; Tue, 5 Nov 2024 08:30:13 +0100 (CET) Received: from ext-subm010.mykolab.com (unknown [10.9.6.10]) by int-mx011.mykolab.com (Postfix) with ESMTPS id 66EE430C5742; Tue, 5 Nov 2024 08:30:13 +0100 (CET) Message-ID: Date: Tue, 5 Nov 2024 08:30:12 +0100 MIME-Version: 1.0 References: <20241028204504.4172-1-j@lambda.is> <87v7x2tfxm.fsf@gmail.com> Content-Language: en-US From: =?UTF-8?Q?J=C3=B8rgen?= Kvalsvik In-Reply-To: <87v7x2tfxm.fsf@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.98 X-Spam-Score: -3.98 X-Migadu-Queue-Id: B3B6D73F04 X-Migadu-Scanner: mx10.migadu.com X-TUID: LYqnbj5g44B7 On 11/5/24 06:20, Maxim Cournoyer wrote: > Hi Jørgen, > > Jørgen Kvalsvik writes: > >> * gnu/packages/dart.scm: New file. >> * gnu/local.mk: Register it. >> >> Change-Id: Idbdcf4e30790b3225bf86a36a0a4c4b081b557aa >> --- >> gnu/local.mk | 1 + >> gnu/packages/dart.scm | 101 ++++++++++++++++++++++++++++++++++++++++++ >> 2 files changed, 102 insertions(+) >> create mode 100644 gnu/packages/dart.scm >> >> --- >> >> Hello, >> >> This is a port of the nixpkgs Dart compiler package [1]. I am interested >> in it specifically because it is a transitive dependency of Hugo [2], >> and I figured I other people might be interested in these packages, too. >> >> The from-source build of Dart is quite the pain (nixpkgs seems to have >> given up, but I do not know the story there). I looked around and while >> I did not find a strict rule saying "source only", it does stand out by >> relying on prebuilt artifacts. For my current needs it is good enough, >> and I hope that in the future it could get a proper source build. I saw >> there was an effort a few years ago, but it appears to have stopped >> completely. > > What kind of prebuilt artifacts are we talking about? > > [...] > >> +(define-public dart-3.5 >> + (package >> + (name "dart") >> + (version "3.5.4") >> + (source (origin >> + (method url-fetch) >> + (uri (string-append >> + "https://storage.googleapis.com/dart-archive/channels/stable/release/" >> + version "/sdk/dartsdk-" >> + (match (%current-system) >> + ("x86_64-linux" "linux-x64") >> + ("i686-linux" "linux-ia32") >> + ("aarch64-linux" "linux-arm64") >> + (_ "unsupported")) >> + "-release.zip")) >> + (sha256 >> + (base32 (match (%current-system) >> + ("x86_64-linux" "0rv9rp8g5blhncqwciymhxh3z2832yp54lphxgsvkmm9y8s5w34d") >> + ("i686-linux" "02kv119swcp7y4n3yb2i5a4dagjpf0zq3b3an1apahj5zn6ak41g") >> + ("aarch64-linux" "1v437zpksk0jhib6vhpcbvv715mv32zmwby8b3p9qd3k67fn87d9") >> + (_ "0000000000000000000000000000000000000000000000000000")))))) > > Given the "sources" are architecture-specific... > >> + (build-system copy-build-system) > > ... and that we aren't building them, I suppose we are talking about > binary executables. Correct. > [...] > > While we do have some other packages that do not bootstrap entirely such > as Vala, the situation is not comparable with simply fetching its > binaries and copying them to the store. > > I don't think this can be added to GNU Guix as it is, as our policies > are strict about being able to build from source (see the pain we go > through to build recent rust for example -- a long bootstrap chain > rooted in mrustc). > > I'd suggest creating a merge request against a different channel that do > not have such high standards/requirements such as NonGuix [0]. > > I'm now closing this ticket. Thank you for producing it, and apologies > for the outcome, but I think it's important to stick to this important > property of Guix called 'referential transparency', which wouldn't be > quite the same if the references were opaque binaries :-). No problem - frankly, I expected as much (and appreciate it), but wanted to check to be sure. As Sharlatan pointed out there is an older, maybe stale, bootstrapping effort, which could be revived. As for Hugo (which is what I cared about) it has a bunch of other dependencies that aren't in guix and that don't really mesh too well since the go build system doesn't do modules yet, and some dependencies are .zip/modules-only. > > [0] https://gitlab.com/nonguix/nonguix/ >