Subject: [bug#44926] [PATCH v2 14/15] gnu: Add dart-2.7.2.

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

* gnu/packages/dart.scm (dart-2.7.2): New variable.
---
 gnu/packages/dart.scm | 62 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 62 insertions(+)

diff --git a/gnu/packages/dart.scm b/gnu/packages/dart.scm
index 7f30fb7fc4..51287c4dc7 100644
--- a/gnu/packages/dart.scm
+++ b/gnu/packages/dart.scm
@@ -1219,3 +1219,65 @@
      (alist-replace
       "dart" `(,dart-2.5.0)
       (package-native-inputs dart-2.5.0)))))
+
+(define-public dart-2.7.2
+  (package
+    (inherit dart-2.6.1)
+    (version "2.7.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/dart-lang/sdk")
+             (commit version)))
+       (sha256
+        (base32
+         "1gyi76rwznxxr09kslr3glhw1l76qc25a2y4pwqqg9rgpl52pcbd"))))
+    (arguments
+     (substitute-keyword-arguments (package-arguments dart-2.6.1)
+       ((#:phases phases)
+        `(modify-phases ,phases
+           (add-before 'configure 'link-pthread
+             (lambda* _
+               (substitute* "build/toolchain/gcc_toolchain.gni"
+                 (("\\$libs_section_postfix")
+                  "$libs_section_postfix -lpthread"))))))))
+    (inputs
+     (append
+      `(("dart-pkg-pedantic"
+         ,(dart-pkg "pedantic" "v1.8.0"
+                    "0bmdmf1bgxclh365ca7c05cpz7wabyis1ax65r3pj7ksjg4p8hp9")))
+      (replace-inputs
+       dart-2.6.1
+       `(("dart-pkgtested-package-config"
+          ,(dart-pkg "package-config" "2453cd2e78c2db56ee2669ced17ce70dd00bf576"
+                     "0wg5dgrk584zmxkcla88641i6w4ba7fbpw8l5ghzqv1v8azqvr7i"))
+         ("dart-pkgtested-dart-style"
+          ,(dart-pkg "dart-style" "1.3.2"
+                     "0a9vgidqxva8prw00mig2irlyj9a4swcwyw0j9n5yxjhg006j43v"))
+         ("dart-pkg-bazel-worker"
+          ,(dart-pkg "bazel-worker" "v0.1.22"
+                     "09wmwvz3vlm9x103i6hy6jrz6rvldwnf8ii1cyj95sx05qam5csz"))
+         ("dart-pkg-dartdoc"
+          ,(dart-pkg "dartdoc" "v0.29.1"
+                     "0aambr3588m1aqsafm0anqbbn3ajvzj3jgkjvb7qgxi9ahx3hw9j"))
+         ("dart-pkg-linter"
+          ,(dart-pkg "linter" "0.1.104"
+                     "1wdqdwjh3r4aiadcaf9qd5hyx6krclx397riy8f5xcravm1kn9jg"))
+         ("dart-pkg-protobuf"
+          ,(dart-pkg "protobuf" "3746c8fd3f2b0147623a8e3db89c3ff4330de760"
+                     "09zgplljiyffqqnd0ylgzagf31b1dgw8qy35r4pwgmlh0xpc1aic"))
+         ("dart-pkg-pub"
+          ,(dart-pkg "pub" "d15067931a6b671a1c9dcc98b5923347676269cf"
+                     "0h8lfyzhz0misgfg8hxg72rvm68miscqfr1h4nmjix9rzw76d0vw"))
+         ("dart-pkg-watcher"
+          ,(dart-pkg "watcher" "0.9.7+13"
+                     "1ilzh97l60srga2j2iiv0ybzjxjdy166vsignp62smjbxhl0p2p9"))
+         ("dart-pkg-yaml"
+          ,(dart-pkg
+            "yaml" "2.2.0"
+            "1y5xwps838yys9aw72n2300p2r5jjvz6v4klsp38y55f9kfh2dax"))))))
+    (native-inputs
+     (alist-replace
+      "dart" `(,dart-2.6.1)
+      (package-native-inputs dart-2.6.1)))))
-- 
2.29.2