Subject: [PATCH v2 09/15] gnu: Add dart-2.1.0-dev.5.0.

From: nixo <[email-masked]>
Date: Sun, 29 Nov 2020 18:34:08 +0100

* gnu/packages/dart.scm (dart-2.1.0-dev.5.0): New variable.
---
 gnu/packages/dart.scm | 97 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 97 insertions(+)

diff --git a/gnu/packages/dart.scm b/gnu/packages/dart.scm
index ba0e528059..22e1900361 100644
--- a/gnu/packages/dart.scm
+++ b/gnu/packages/dart.scm
@@ -872,3 +872,100 @@
     (native-inputs
      (alist-replace "dart" `(,dart-2.0.0-dev.65.0-bin-only)
                     (package-native-inputs dart-2.0.0-dev.65.0-bin-only)))))
+
+(define-public dart-2.1.0-dev.5.0
+  (package
+    (inherit dart-2.0.0-dev.65.0)
+    (version "2.1.0-dev.5.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/dart-lang/sdk")
+             (commit version)))
+       (sha256
+        (base32
+         "07yj5w9fry3has1800sp2yfwijfmc206s5simiiqzw78a0k0r4b0"))))
+    (arguments
+     (substitute-keyword-arguments (package-arguments dart-2.0.0-dev.65.0)
+       ((#:phases phases)
+        `(modify-phases ,phases
+           (delete 'no-dart-preview)
+           (delete 'disable-observatory-tool)
+           (replace 'copy-bootstrap-dart
+             ;; changed path from sdks/linux/dart-sdk to sdks/dart-sdk
+             (lambda* (#:key inputs #:allow-other-keys)
+               (copy-recursively
+                (assoc-ref inputs "dart")
+                "tools/sdks/dart-sdk")))))))
+    (inputs
+     (append
+      `(("icu"
+         ,(dart-pkg "icu" "c56c671998902fcc4fc9ace88c83daa99f980793"
+           "1kw4x116kdv9cbvfv1ciib3brri9a0x0p3qpgz957rki213z89zf"
+           "https://chromium.googlesource.com/chromium/deps/icu")))
+      (replace-inputs
+       dart-2.0.0-dev.65.0
+       `(("boringssl"
+          ,(dart-pkg "boringssl" "672f6fc2486745d0cabc3aaeb4e0a3cd13b37b12"
+                     "14zjxg00hp752lys7gxpp91apnbwkzy3snvqp5wi99y78rhl7cyn"
+                     "https://boringssl.googlesource.com/boringssl"))
+         ("boringssl-gen"
+          ,(dart-pkg "boringssl-gen" "344f455fd13d46f054726638e76026156ea73aa9"
+                     "0s8rwjmkbsf4dg7b6v247wf9fq018wvgh9psjicjg7nfs7pbvs71"))
+         ("observatory-pub-packages"
+          ,(dart-pkg "observatory-pub-packages"
+                     "0894122173b0f98eb08863a7712e78407d4477bc"
+                     "1gc6wfq05mwvbx61aym1vlngc92x4b5fcmxa4q843118mnhmxjfp"))
+         ("dart-pkg-bazel-worker"
+          ,(dart-pkg "bazel-worker" "0.1.14"
+                     "17l0bd30dllg5bhpd68hyx6g6s1krz4nb4qzp51n8ia13crrsr0f"))
+         ("dart-pkg-dartdoc"
+          ,(dart-pkg "dartdoc" "v0.24.1"
+                     "01rxayn8lmvb05yij7ad4r8yyadm1iaf47ks4ckyxf5k09padm81"))
+         ("dart-pkg-fixnum"
+          ,(dart-pkg "fixnum" "0.10.8"
+                     "1w4gc4gz12ryfngvd11q91j8b5j0slzcbic89vizklq4psv2qgn8"))
+         ("dart-pkg-glob"
+          ,(dart-pkg "glob" "1.1.7"
+                     "01659iwdvqpw7s6ransqmwzvh36pyfiiy4yd3q3arpdk35264464"))
+         ("dart-pkg-http"
+          ,(dart-pkg "http" "0.11.3+17"
+                     "04wqkj0fkqzn0a8fw20bl4vc59hqcpf834ahw44p89jib72w311i"))
+         ("dart-pkg-intl"
+          ,(dart-pkg "intl" "0.15.6"
+                     "0rlgr2fdrviph38ij6idpslxn7ly4apfr9fjgy86sax9j8zbnigq"))
+         ("dart-pkg-markdown"
+          ,(dart-pkg "markdown" "2.0.2"
+                     "13mn1ksjnr1hdgcy9p7d1kq9jvh24rg1hzxb2yzcwb6nkhfn03wl"))
+         ("dart-pkg-matcher"
+          ,(dart-pkg "matcher" "0.12.3"
+                     "0xsbgrky011r3c1jbk4i1ahxw02m38hxgmy2vn65vv8qf9470kq0"))
+         ("dart-pkg-oauth2"
+          ,(dart-pkg "oauth2" "1.2.1"
+                     "0wqrz5k7mf16rihkx4bwxd82iy2841zpqzqxxph00vf11aflrmal"))
+         ("dart-pkg-protobuf"
+          ,(dart-pkg "protobuf" "0.9.0"
+                     "16pg6zsvphr6yd4vy13icq68i8g14ll1j04vhdz0k5p2mz57wqq5"))
+         ("dart-pkg-resource"
+          ,(dart-pkg "resource" "2.1.5"
+                     "0qqixp6qj8qks4iww6zlallxs1w8z6nx3842g8fl7f3s59km9d76"))
+         ("dart-pkg-shelf"
+          ,(dart-pkg "shelf" "0.7.3+3"
+                     "1q3mh1mmis7w1rbvwvzf3avgh2yfznb8hc194f3xbvhic01r1d2m"))
+         ("dart-pkg-source-maps"
+          ,(dart-pkg "source-maps" "0.10.9"
+                     "0dk2v7hzv4yknkz44wjfjisfb7yj8xgqhnxw34vi3jf6v7ix67zv"))
+         ("dart-pkg-unittest"
+          ,(dart-pkg "unittest" "2b8375bc98bb9dc81c539c91aaea6adce12e1072"
+                     "15mcvxckqjlmvhb5azprhz0psp6r8409cd2kjgd0irhaldkvjifh"))
+         ("dart-pkg-usage"
+          ,(dart-pkg "usage" "3.4.0"
+                     "1d9dvqk3s1xr4sx50hahl7iq38z9wf0iw006hb9vhdsvda9mkcsr"))
+         ("dart-pkg-yaml"
+          ,(dart-pkg
+            "yaml" "2.1.15"
+            "00p7hkkj5kbz4vkgzrsi4h405jrbl6gg66j88ysfgaq37c3k4v04"))))))
+    (native-inputs
+     (alist-replace "dart" `(,dart-2.0.0-dev.65.0)
+                    (package-native-inputs dart-2.0.0-dev.65.0)))))
-- 
2.29.2