From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wASOEVDcw1/+bgAA0tVLHw (envelope-from ) for ; Sun, 29 Nov 2020 17:37: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 mp1 with LMTPS id 4DNDDVDcw19JWQAAbx9fmQ (envelope-from ) for ; Sun, 29 Nov 2020 17:37: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 D1BCD940363 for ; Sun, 29 Nov 2020 17:37:19 +0000 (UTC) Received: from localhost ([::1]:44014 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kjQdS-00036t-QN for larch@yhetil.org; Sun, 29 Nov 2020 12:37:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49032) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjQdD-00032o-Ed for guix-patches@gnu.org; Sun, 29 Nov 2020 12:37:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40948) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kjQdD-0008Ul-5t for guix-patches@gnu.org; Sun, 29 Nov 2020 12:37:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kjQdD-0003qd-3x for guix-patches@gnu.org; Sun, 29 Nov 2020 12:37:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#44926] [PATCH v2 12/15] gnu: Add dart-2.5.0. Resent-From: nixo Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 29 Nov 2020 17:37:03 +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.160667137214651 (code B ref 44926); Sun, 29 Nov 2020 17:37:03 +0000 Received: (at 44926) by debbugs.gnu.org; 29 Nov 2020 17:36:12 +0000 Received: from localhost ([127.0.0.1]:52477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjQcO-0003o5-0n for submit@debbugs.gnu.org; Sun, 29 Nov 2020 12:36:12 -0500 Received: from mail-wr1-f41.google.com ([209.85.221.41]:45577) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjQc9-0003ks-Na for 44926@debbugs.gnu.org; Sun, 29 Nov 2020 12:35:58 -0500 Received: by mail-wr1-f41.google.com with SMTP id t4so11992110wrr.12 for <44926@debbugs.gnu.org>; Sun, 29 Nov 2020 09:35:57 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=5T1HB82WN0Q6W7AlUOFrv12FbyKhWdNFmR8U+80VNtQ=; b=vYtEiSxT4wQPmL9xLGLn1T/SfBq5fALFAcNCmNPEFtLEI8/FdDcuMK7rvo9bTIBiSS +7LKrjY5q0LbHg7czXeyAd5j0rOTv5tD7YO+jYhboe19HxtNYIrTAX+uax+tPDkUzK38 nTSqZ2ndGlABr9wpCuVAILGv/t5U0e3BijkvjokhgIFJJ3furZR79jKVWlfczxsPvy4a 3qTWOtWUzJFqjyZoSksL9yADbMC5pmIylUsAzKdWw1FVY43uhOZGLRgiSd6G44VLXDGR UQGE5F1NnhHzdBqlw6PzY2lWaD+hYdIdD5d2tYG1p5QyvbmTjZzUF0Rr+gSdsdv1hZtB KK/A== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=5T1HB82WN0Q6W7AlUOFrv12FbyKhWdNFmR8U+80VNtQ=; b=WG9SEErocx8yYPvriOkVKBsS+A1JMrjm+6oeDzKn4UEtPDRS5fV5G1a0yXnvi8sPqN 6dxf9ddNnk+g1NOS5dekZ4RpdwL4wpfIrZkcUVCtL+a+xQ3j0OssljEfdr+Gvrl6O6pC on0NVQ7+B9k1MAjnp73VZGKJu1Dkm0rmN5TL59QO9zAzGpDhtcuzaDGHRvIhj02OB/Xf 7W9DaQZx8v6Hb6ipQY/oVulEtFOkqszLK6pTWDAPNcXJ1g+hykCEyYhQj7+iGcFSSWpC yPtr4nOVWHgplRY1nQwkbl7K4Css1JH8WthHSbATj2mO9HSzZAWvcMCjHxJo/1le6Iae 9TeA== X-Gm-Message-State: AOAM531naN2D1jf4QbT4nEZNBbuRC64xcLERnST3uzTQoU8V/j0s6fRf n/2ZbtB2dbDKMHbFAFH91vJnnhV/BrA= X-Google-Smtp-Source: ABdhPJxUJ3j4SHYlQW2yoWeDZx2GwZ3SsffUJrzUKQgCb2LsBCKbOTczWSFFc7Nf/kqtoIftQPAOtQ== X-Received: by 2002:adf:d0d2:: with SMTP id z18mr23754996wrh.297.1606671351878; Sun, 29 Nov 2020 09:35:51 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2020 09:35:51 -0800 (PST) From: nixo X-Google-Original-From: nixo Date: Sun, 29 Nov 2020 18:34:11 +0100 Message-Id: <20201129173414.8984-12-nicolo@nixo.xyz> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201129173414.8984-1-nicolo@nixo.xyz> References: <20201129173414.8984-1-nicolo@nixo.xyz> 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=vYtEiSxT; 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: ErThJa+wHWwW * gnu/packages/dart.scm (dart-2.5.0): New variable. --- gnu/packages/dart.scm | 90 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) diff --git a/gnu/packages/dart.scm b/gnu/packages/dart.scm index 33e0135e9f..1c01fd47d1 100644 --- a/gnu/packages/dart.scm +++ b/gnu/packages/dart.scm @@ -1061,3 +1061,93 @@ (alist-replace "gcc" `(,gcc-8) (package-native-inputs dart-2.1.0-dev.6.0)))))) + +(define-public dart-2.5.0 + (package + (inherit dart-2.4.0) + (version "2.5.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/dart-lang/sdk") + (commit version))) + (sha256 + (base32 + "1xwrj7hj9a28w2ymykmfd7c2bi7b68ssbhkkb7p62yhn4m504vh1")))) + (arguments + (substitute-keyword-arguments (package-arguments dart-2.4.0) + ((#:phases phases) + `(modify-phases ,phases + (add-before 'configure 'create-gclient-args + (lambda _ + (with-output-to-file "build/config/gclient_args.gni" + (lambda () + ;; taken from their release, available at + ;; commondatastorage.googleapis.com/dart-archive/channels/ + ;; stable/raw/2.5.0/src/dart-2.5.0.tar.gz + (display "checkout_llvm = false"))))) + (add-before 'configure 'patch-dart-action + (lambda* (#:key inputs propagated-inputs #:allow-other-keys) + (substitute* "build/dart/dart_action.gni" + ;; FIX: assignment had no effect + (("dfe =") "# dfe =") + (("\"\\$_dart_root/tools/sdks/\\$host_os/.*service.dart.snapshot\"") + "")))) + (add-before 'configure 'disable-language-model + ;; the language_model is a 200Mb tensor flow binary image, which + ;; should be downloaded from + ;; https://chrome-infra-packages.appspot.com/p/dart/language_model/ + ;; It seems to be used for code completition + (lambda _ + (substitute* "sdk/BUILD.gn" + ;; definition and use of ftlite/language model are after a + ;; conditional, make it false + (("target_cpu == \"x64\"") "false")))) + (add-before 'configure 'add-missing-includes + (lambda _ + (substitute* "runtime/bin/ffi_test/ffi_test_functions.cc" + ;; compilation fails because of mutex, condition variable and + ;; function not declared + (("#include " all) + (string-join + `(,all + "#include " "#include " + "#include ") + "\n"))))))))) + (inputs + (append + `(("dart-pkg-tflite-native" + ,(dart-pkg "tflite-native" "06e533a9747306d1114c53427cc67eda080f51f9" + "1ibd66l1hq0b04cbnxm9k968h0ijqzi1sfslcxx9w45zcnmhk63n")) + ("dart-pkg-mustache" + ,(dart-pkg "mustache" "5e81b12215566dbe2473b2afd01a8a8aedd56ad9" + "03k614d3njlw06n2ff6g4yf252xnwj5fb83aizs3dz1awmkhygk2" + "https://github.com/xxgreg/mustache"))) + (replace-inputs + dart-2.4.0 + `(("dart-pkg-dartdoc" + ,(dart-pkg "dartdoc" "0.28.4" + "0p9b60nrfqmgbngzsabgh7byrp0p1lwfc9rh77z3gjphmi16ydxf")) + ("dart-pkg-fixnum" + ,(dart-pkg "fixnum" "0.10.9" + "0vicw7jprch4pd949j0b4h695i5wzk1njg4ffhcz4jrc40l2p0gn")) + ("dart-pkg-http" + ,(dart-pkg "http" "0.12.0+2" + "0psffnp9lmyklbz06687hkm8ywnspr9ai5bpa33jw0m24zz4znc7")) + ("dart-pkg-http-io" + ,(dart-pkg "http-io" "2fa188caf7937e313026557713f7feffedd4978b" + "1wfp984n8wykx1n6niwxfhxzr2cq95qdvk47majxizwlzbqv989x")) + ("dart-pkg-http-multi-server" + ,(dart-pkg "http_multi_server" "2.0.5" + "11szb0by7yn7kdcp9pbd6igy2kxilmpsnvwdm3ds8bp7l1ysgpwk")) + ("dart-pkg-http-parser" + ,(dart-pkg "http-parser" "3.1.3" + "0g71a2bgws4nv0vllidyvf1ncbrxry81dy98vy0p8lz3h8r7irpx")) + ("dart-pkg-linter" + ,(dart-pkg + "linter" "0.1.96" + "13fd9yfv6ww2yg2bhv0x01bgx4cl2vx12cy485ls2m16jwyjf1di")))))) + (native-inputs + (alist-replace "dart" `(,dart-2.4.0) + (package-native-inputs dart-2.4.0))))) -- 2.29.2