From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id gG8kChTcw1+IUwAA0tVLHw (envelope-from ) for ; Sun, 29 Nov 2020 17:36:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id cKvtBRTcw18TRgAA1q6Kng (envelope-from ) for ; Sun, 29 Nov 2020 17:36:20 +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 C43B9940363 for ; Sun, 29 Nov 2020 17:36:19 +0000 (UTC) Received: from localhost ([::1]:42210 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjQcU-0002Hb-Pm for larch@yhetil.org; Sun, 29 Nov 2020 12:36:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjQcF-0002Fq-UN for guix-patches@gnu.org; Sun, 29 Nov 2020 12:36:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40913) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kjQcE-0008Dy-MX for guix-patches@gnu.org; Sun, 29 Nov 2020 12:36:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kjQcE-0003mN-JK for guix-patches@gnu.org; Sun, 29 Nov 2020 12:36:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#44926] [PATCH v2 01/15] gnu: Add gn-for-dart-bootstrap. References: <87lfelqrni.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> In-Reply-To: <87lfelqrni.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me> Resent-From: nixo Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 29 Nov 2020 17:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44926 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 44926@debbugs.gnu.org Cc: nixo Received: via spool by 44926-submit@debbugs.gnu.org id=B44926.160667131214355 (code B ref 44926); Sun, 29 Nov 2020 17:36:02 +0000 Received: (at 44926) by debbugs.gnu.org; 29 Nov 2020 17:35:12 +0000 Received: from localhost ([127.0.0.1]:52439 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjQbQ-0003jS-8u for submit@debbugs.gnu.org; Sun, 29 Nov 2020 12:35:12 -0500 Received: from mail-wr1-f53.google.com ([209.85.221.53]:39252) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjQbN-0003j9-VS for 44926@debbugs.gnu.org; Sun, 29 Nov 2020 12:35:10 -0500 Received: by mail-wr1-f53.google.com with SMTP id e7so12036766wrv.6 for <44926@debbugs.gnu.org>; Sun, 29 Nov 2020 09:35:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8b8iv6vOC8hd3WEbHix3GPppVw9c6gV4VGAfzhvIYUo=; b=XN/tjrKuGw0b1YZQzecyO3n9qGgLoBhRZhbcMXYvPNVLmZxj99iy0f8GlFUXyp0N5m SmP94qP7ps+hsiPXNj1hAwV5m8pb9mBdgyoYT83XABFmlNd2oKy7FPm79+NvlM/6lt5Z QdMoARzWTqjlsR6IOArQr4Romkp3b9rmpk04E2zmi0Jv0sfVK2FDupW3eZvyNDSYJA9P zF0+34thYqCMARpBT96OmViCtdh/nkYghGCo3EmiQUNpC55pM5WF1uikTpHs8fh70Rc5 g7hShxMWFqMHeTDcr32QW5j5jIPLUlFB7jTJwiaBbWLBOC8PWGguO7FtBVpP70cF/BcF KixA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8b8iv6vOC8hd3WEbHix3GPppVw9c6gV4VGAfzhvIYUo=; b=d6Vluw2muDi8OaUojhgF90RI+uNukGGippMCFEDdH7+qZLA9v/uqPXiPeeeVM/Rl0D EjsoISyNblOSYrDqCvL2fmYaXHl1oJ98h7bbTBljooCoovLvhpPgU6jvFeHUCNK5YykT TgeCMq7pj9C3B9vOrZXFYldXSSGO1neFv8ldihv5zkmvt7zShpJ9ALOHghwh41emKnSv I5MNpruNJPniExCNDPLOATpUWDAE6gG1BkXWj+ynA4DCYxKhIzUQ0G4xTzLMFKyPeHB4 i8Cf9ONAMkiaHxkqwaj58aeC+PDyiETjgfbC+evuOQ7Nc5EPrpbiJeIH/f/G8IRqYtAh /KHg== X-Gm-Message-State: AOAM531esApZmpKKmSnIqQtggpeSx/wy3sm/MGi26O55Wq3zNdGXDBu3 cNBMXsmKUsNpzXebB/zjKKqvadRDYcE= X-Google-Smtp-Source: ABdhPJz+OnUWNEQKy2kjL0XXk5Foida0eT2taG3f2y1kfzRtA6CHMHDE+kd0jYWJQegFTSHn1CwOMA== X-Received: by 2002:a5d:510d:: with SMTP id s13mr23280328wrt.380.1606671303641; Sun, 29 Nov 2020 09:35:03 -0800 (PST) Received: from localhost.localdomain (host-79-54-131-134.retail.telecomitalia.it. [79.54.131.134]) by smtp.gmail.com with ESMTPSA id c9sm22613231wrp.73.2020.11.29.09.35.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2020 09:35:03 -0800 (PST) From: nixo X-Google-Original-From: nixo Date: Sun, 29 Nov 2020 18:34:00 +0100 Message-Id: <20201129173414.8984-1-nicolo@nixo.xyz> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) 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" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 2.82 X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=XN/tjrKu; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-TUID: SRzas/pm0mVX * gnu/packages/build-tools.scm (gn-for-dart-bootstrap): New variable. --- gnu/packages/build-tools.scm | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/build-tools.scm b/gnu/packages/build-tools.scm index 3f140efdb3..c58e47dc98 100644 --- a/gnu/packages/build-tools.scm +++ b/gnu/packages/build-tools.scm @@ -177,6 +177,44 @@ files and generates build instructions for the Ninja build system.") ;; X11 license. (license (list license:bsd-3 license:x11))))) +(define-public gn-for-dart-bootstrap + (let ((commit "041ed5e79abc24956f296ca8bc94d04e26cf3d6b") + (revision "1353") + (hash "1zd41zwggamkqy33cra75cfdx82v3spdfym6hj1lbbanabi4mpl7")) + (package + (inherit gn) + (name "gn-for-dart-bootstrap") + (version (git-version "0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gn.googlesource.com/gn") + (commit commit))) + (sha256 (base32 hash)) + (file-name (git-file-name name version)))) + (arguments + `(#:tests? #f ;FIXME: How to run? + #:phases (modify-phases %standard-phases + (add-before 'configure 'set-build-environment + (lambda _ + (setenv "CC" "gcc") + (setenv "CXX" "g++") + (setenv "AR" "ar") + #t)) + (replace 'configure + (lambda _ + (invoke "python" "build/gen.py"))) + (replace 'build + (lambda _ + (invoke "ninja" "-C" "out" "gn"))) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (install-file "out/gn" + (string-append out "/bin")) + #t))))))))) + (define-public meson (package (name "meson") -- 2.29.2