From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id eEmqKpKrKWcTvwAAqHPOHw:P1 (envelope-from ) for ; Tue, 05 Nov 2024 05:22:26 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id eEmqKpKrKWcTvwAAqHPOHw (envelope-from ) for ; Tue, 05 Nov 2024 06:22:26 +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=G+0FaQ2G; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=i2v3op3z; 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"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1730784146; 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-to: 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=Qm55dah5bFqTVCe6CS4BqWbf+UAPcTmtV9gCyntMSJM=; b=q/OuQQ4vgVTX3QlYVvfAsedzdlcjfLVa3KT+mrBoV/Z0TatkWkiLtPylIioXGFx1S7cQV4 0dyLoB0NWLCNMRV30aqfffh6yaSQ60+fX+xWrKJnISEFj22Ln1vWDLYzKxJL8SH1rCEq49 tMvLBeTlwZPKFETAC6ZCLjQpFgvYsStTYK5JD+4FTBV82LuVTMqyNV7cfOjTX6UpIlsqYw M98ktlPae8L/kcwuGYUI20l+zky29wusxLiW2d7/PBWUx1AhkY760iy0OG3MYupfrAqp99 ya25h47+nWH4nCdP81nGbP6Ft6o5umKyLk7QU6ROMrqL5/9sfFRg6IO7G5EzOg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1730784146; a=rsa-sha256; cv=none; b=OVdU8UmJhgqjig4TvdTJeU8Dyz0ACIavATNiqcUe04pm/W1U/2LKRMMeSV9QqvSYogOfWZ 8l1G8TfOi920xIQ0/hgQIScBb68bANfkraM4AYUQcrZN+DGNOqb9yvwup2LHIzA74mJ3mn 5hz3yRMqGYZpHS0k6i9CDSwa+A216Mok+ICKgn9uubjSqRGjhlfNDpRgbyFfq/XGhVe5je /AGWCa1DN8aUOuNNApaDBP99CUqtBRd4pM7GYUEXq0ob9APTnuSBVyycbHVn3g3Ef2ArxQ JvVFnbCn0z6ll+FO2wYN/ENNAImoOlmnehDenVQv0ebOVvA+0La9rOgXfMNZIA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=G+0FaQ2G; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=i2v3op3z; 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"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) 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 525067BCDF for ; Tue, 05 Nov 2024 06:22:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t8C0z-0000ne-71; Tue, 05 Nov 2024 00:22:05 -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 1t8C0w-0000nA-PA for guix-patches@gnu.org; Tue, 05 Nov 2024 00:22: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 1t8C0w-0002ie-GU for guix-patches@gnu.org; Tue, 05 Nov 2024 00:22:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=Qm55dah5bFqTVCe6CS4BqWbf+UAPcTmtV9gCyntMSJM=; b=G+0FaQ2GAJo4cxSH9S8qmt5qXFwiejvNCaGLNZwsyzg5epZV1k1oq1eA7ONUaKGZM2nlbB/rUGcE/MjtOX5iiwgGYyXqdxzls7SO8mwS53tyDX3b4mBUefi0wqgTKhxdrdBAG5puUuBRIAVP0W3dHVEbcSRSi/KVCyfxWhzL68N8ncRexFdGyp05S2sIiEUAP70UCG2GO4JiWs+HYQnm5TmaYp1RwdCFJQGB5K/s0e4IU3NoHnz3feKSrMlNulusW8GgbPDdJTNXI7vfxUVyPeThbocb6ZHOJDpgY+f4abf6aY/EKJR//uskM5vcMN69/CmUr3qXkOe318pfURMW/Q==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t8C0w-00016v-4P for guix-patches@gnu.org; Tue, 05 Nov 2024 00:22:02 -0500 Subject: bug#74078: [PATCH] gnu: Add dart Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Tue, 05 Nov 2024 05:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 74078 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: =?UTF-8?Q?J=C3=B8rgen?= Kvalsvik Cc: 74078-done@debbugs.gnu.org Mail-Followup-To: 74078@debbugs.gnu.org, maxim.cournoyer@gmail.com, j@lambda.is Received: via spool by 74078-done@debbugs.gnu.org id=D74078.17307840914247 (code D ref 74078); Tue, 05 Nov 2024 05:22:01 +0000 Received: (at 74078-done) by debbugs.gnu.org; 5 Nov 2024 05:21:31 +0000 Received: from localhost ([127.0.0.1]:43199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8C0Q-00016R-Q6 for submit@debbugs.gnu.org; Tue, 05 Nov 2024 00:21:31 -0500 Received: from mail-pg1-f169.google.com ([209.85.215.169]:58491) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t8C0O-00016F-BO for 74078-done@debbugs.gnu.org; Tue, 05 Nov 2024 00:21:29 -0500 Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-7e9e38dd5f1so3878220a12.0 for <74078-done@debbugs.gnu.org>; Mon, 04 Nov 2024 21:21:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730784026; x=1731388826; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Qm55dah5bFqTVCe6CS4BqWbf+UAPcTmtV9gCyntMSJM=; b=i2v3op3zng0qa7/hIW5qh3FPIauVZ68k5IAeEGA8L34VU6a2oo76cy7E9sucRbLGfV Nq+4szLd8vUOg4VpkpFcMlfqO77Wgrlej6/sr0pdxKeuA1ShkHai/E/7sJRIudkYWmoS UH8Th97W2/1xkh3dhDxfkwkZfe21kQ615AGEn84ouD5JcOH69AzRqzoN78/JyOATBp4F 1muS8MX8v2+d4bBErWb1ifsg0jFqJnat8XmY4NsBNI0jesJngeyrXjB5eXdV78eIGeVN InATag2XwiO5a/nM0Uprdh5mcqliZg9U0xteVHGIHR4VTacGpKs2LjnnNvcy1C8EJpq5 lg8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730784026; x=1731388826; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Qm55dah5bFqTVCe6CS4BqWbf+UAPcTmtV9gCyntMSJM=; b=raIUVzAV2ruLLtj0whW8r9U17622EEJBEYD9xmInCwyPGTkUBFFGnIIB0AZpsbtoHV W+UoTx6K3Ac72BIAZrRlKwBCQUkvOM0jGRkglTJxnmQfkBZvA5VxKOv6oeA2JvFfIajj hEFCX4vSW99Ntjz3DYpMZS4anXL2PxoONpObDH43bZnHutLNxC5UG381ZPuD4Xaip1VB 0e6U8HI+dGsGsCAgDfUbVK93qn9v/+OPYvExeXNO7T7z64h3hjbEcxXECaNJK+i6amcM Cg9cmhjEMG4ja1ndElLl9t0THG6bz/KsS/8YP9P8RKA8/RZkQOyJWUtroT20+FPHOMQI NWFQ== X-Gm-Message-State: AOJu0YwX/m6ZJVSS822QBG/xEBhhbgaI07nym8qR32VKg0ivh4ByUSku oZfRyfrWj+UBf9IAveZSvEQ6vAqc5vsx6sn9vv+Wn0MI38gAeaReIDi+Hphz X-Google-Smtp-Source: AGHT+IHl4JI6WBjmPF788x8KDPkgTH213E42+CxlyacFbAYbZ/h+52CVchzkMTRVw2ubRUlPm3tqMA== X-Received: by 2002:a05:6a20:9189:b0:1db:f642:8d8b with SMTP id adf61e73a8af0-1dbf6428dc2mr476543637.45.1730784025735; Mon, 04 Nov 2024 21:20:25 -0800 (PST) Received: from terra ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-720bc1ea695sm8583437b3a.73.2024.11.04.21.20.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Nov 2024 21:20:25 -0800 (PST) From: Maxim Cournoyer In-Reply-To: <20241028204504.4172-1-j@lambda.is> ("=?UTF-8?Q?J=C3=B8rgen?= Kvalsvik"'s message of "Mon, 28 Oct 2024 21:45:04 +0100") References: <20241028204504.4172-1-j@lambda.is> Date: Tue, 05 Nov 2024 14:20:21 +0900 Message-ID: <87v7x2tfxm.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 1.75 X-Spam-Score: 1.75 X-Migadu-Queue-Id: 525067BCDF X-Migadu-Scanner: mx13.migadu.com X-TUID: 6HwhpTd5QU9O Hi J=C3=B8rgen, J=C3=B8rgen 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/channel= s/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" "0rv9rp8g5blhncqwciymhxh3z2832yp54lphx= gsvkmm9y8s5w34d") > + ("i686-linux" "02kv119swcp7y4n3yb2i5a4dagjpf0zq3b3an1a= pahj5zn6ak41g") > + ("aarch64-linux" "1v437zpksk0jhib6vhpcbvv715mv32zmwby8= b3p9qd3k67fn87d9") > + (_ "00000000000000000000000000000000000000000000000000= 00")))))) 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. [...] 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 :-). [0] https://gitlab.com/nonguix/nonguix/ --=20 Thanks, Maxim