all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 38c2484eb4592333caa7a089a47ca3784e601daa 44566 bytes (raw)
name: gnu/packages/dart.scm 	 # note: path name is non-authoritative(*)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
 
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2020 Nicolò Balzarotti <nicolo@nixo.xy>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages dart)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix build-system gnu)
  #:use-module (guix git-download)
  #:use-module (guix packages)
  #:use-module (guix utils)
  #:use-module (ice-9 match)
  #:use-module (srfi srfi-1)
  #:use-module ((guix build utils) #:select (alist-replace))
  #:use-module (gnu packages)
  #:use-module (gnu packages build-tools)
  #:use-module (gnu packages gcc)
  #:use-module (gnu packages golang)
  #:use-module (gnu packages libunwind)
  #:use-module (gnu packages ninja)
  #:use-module (gnu packages nss)
  #:use-module (gnu packages perl)
  #:use-module (gnu packages python)
  #:use-module (gnu packages python-xyz))

(define* (dart-pkg name tag hash #:optional
                   (url (string-append
                         "https://github.com/dart-lang/"
                         (string-replace-substring name "-" "_"))))
  (origin
    (method git-fetch)
    (uri (git-reference
          (url url)
          (commit tag)))
    (file-name
     (git-file-name name
                    (if (> (string-length tag) 9)
                        (string-take tag 9)
                        tag)))
    (sha256 (base32 hash))))

(define-public dart-2.0.0-dev.8.0
  (package
    (name "dart")
    (version "2.0.0-dev.8.0")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/dart-lang/sdk")
             (commit version)))
       (file-name (string-append name "-" version))
       (sha256
        (base32
         "17870yvi4flcraw3ihs694g4r0fmmmj2qmz9n4r311pizxzagjkk"))
       (modules '((guix build utils)))
       ;; Delete a folder containing a pre-build windows .dll
       (snippet
        '(delete-file-recursively "build/win"))
       (patches
        (search-patches "dart-2.0.0-dev.8-disable-analytics.patch"))))
    (arguments
     `(#:configure-flags
       ;; FIXME: Do not hardcode the target? Don't know if when fixed this
       ;; package will work on other targets
       (list "host_cpu=\"x64\""
             "target_cpu=\"x64\""
             "dart_target_arch=\"x64\""
             "target_os=\"linux\""
             "dart_runtime_mode=\"develop\""
             "dart_debug=false"
             "is_debug=false"
             "is_release=true"
             "is_product=false"
             "is_clang=false"
             "use_goma=false"
             "goma_dir=\"None\""
             "dart_use_tcmalloc=true"
             "dart_use_fallback_root_certificates=true"
             "dart_zlib_path = \"//runtime/bin/zlib\""
             "dart_platform_sdk=false"
             "is_asan=false"
             "is_msan=false"
             "is_tsan=false"
             "dart_snapshot_kind=\"app-jit\"")
       #:phases
       (modify-phases %standard-phases
         ;; no check target.  Tests are available, but I should check how to
         ;; run them
         (delete 'check)
         (add-before 'configure 'add-git-revision
           (lambda _
             (with-output-to-file "tools/GIT_REVISION"
               (lambda () (display "0")))))
         (add-before 'configure 'add-third-party-src
           ;; Copy some deps to third_party, as required by the build system
           ;; TODO: LINK THEM INSTEAD OF COPYING
           (lambda* (#:key inputs #:allow-other-keys)
             (use-modules (ice-9 regex) (ice-9 match))
             ;; place pkg inputs in the right third_party folder
             ;; (either pkg or pkgtested) based on their input name
             (define (dart-copy-deps-to-third-party-dir pkgdep)
               (copy-recursively
                (assoc-ref inputs pkgdep)
                (let* ((out "third_party/")
                       (text
                        (if (string-match "pkgtested" pkgdep)
                            (string-append out "pkg_tested/"
                             (regexp-substitute
                              #f
                              (string-match "dart-pkgtested-" pkgdep)
                              'post))
                            (string-append out "pkg/"
                                           (regexp-substitute
                                            #f
                                            (string-match "dart-pkg-" pkgdep)
                                            'post)))))
                  (if (string-match "-" text)
                      (regexp-substitute/global
                       #f "-" text 'pre "_" 'post)
                      text))))
             (map (lambda (input)
                    (let ((pkg (car input)))
                      ;; Copy only dependencies starting with "dart-"
                      (when (string-match "dart-" pkg)
                        (dart-copy-deps-to-third-party-dir pkg))))
                  inputs)
             ;; Do the same for other required packages
             (copy-recursively (assoc-ref inputs "boringssl")
                               "third_party/boringssl/src")
             (copy-recursively (assoc-ref inputs "gperftools")
                               "third_party/tcmalloc/gperftools")
             (copy-recursively (assoc-ref inputs "root-certificates")
                               "third_party/root_certificates")
             (copy-recursively (assoc-ref inputs "zlib")
                               "third_party/zlib")
             (copy-recursively (assoc-ref inputs "observatory-pub-packages")
                               "third_party/observatory_pub_packages")))
         (add-after 'add-third-party-src 'generate-third-party-build-files
           (lambda* (#:key inputs #:allow-other-keys)
             (with-directory-excursion "third_party/boringssl"
               ;; go requires home to be set
               (setenv "HOME" "/tmp/")
               (invoke
                (string-append (assoc-ref inputs "python") "/bin/python2")
                "src/util/generate_build_files.py" "gn")
               (map
                (lambda (file)
                  (copy-file
                   (string-append (assoc-ref inputs "boringssl-gen") "/" file)
                   file))
                '("BUILD.gn" "BUILD.generated.gni")))))
         (add-before 'configure 'enable-dtags
           ;; adds the RUNPATH
           (lambda* (#:key inputs propagated-inputs #:allow-other-keys)
             (substitute* "build/config/gcc/BUILD.gn"
               (("disable-new-dtags") "enable-new-dtags"))))
         (replace 'configure
           (lambda* (#:key configure-flags #:allow-other-keys)
             (let ((args (string-join configure-flags " ")))
               (mkdir "out")
               ;; Generate ninja build files.
               (invoke "gn" "gen" "out/Release"
                       (string-append "--args=" args))
               ;; Print the full list of supported arguments as well as
               ;; their current status for convenience.
               (format #t "Dumping configure flags...\n")
               (invoke "gn" "args" "out/Release" "--list"))))
         (replace 'build
           (lambda* (#:key configure-flags #:allow-other-keys)
             (invoke "ninja" "all" "-C" "out/Release")))
         ;; no install phase
         (replace 'install
           (lambda* (#:key outputs #:allow-other-keys)
             (let ((out (assoc-ref outputs "out")))
               ;; This should depend on the architecture as before
               (copy-recursively "out/Release/dart-sdk/" out)))))))
    (inputs
     `(("zlib"
        ,(dart-pkg
          "zlib" "c3d0a6190f2f8c924a05ab6cc97b8f975bddd33f"
          "0fr3h9krramy0jclbacjnwbn0lzvjm6b809llhaz56mbd90i4yl4"
          "https://chromium.googlesource.com/chromium/src/third_party/zlib"))
       ("libunwind" ,libunwind)
       ("nspr" ,nspr)
       ("nss" ,nss)
       ("boringssl"
        ,(dart-pkg
          "boringssl" "d519bf6be0b447fb80fbc539d4bff4479b5482a2"
          "137q647ha8x770wv3jj2kgjv3lj9qjcv191m51vkp3a7zqhhaknv"
          "https://boringssl.googlesource.com/boringssl"))
       ("boringssl-gen"
        ,(dart-pkg "boringssl-gen" "d2b56d1b7657e52eb5a1f075968c773aa3e53614"
                   "1pn2hn0i9fwd27i695q4av3bymm11pmydlbv4hcafslhggq0md19"))
       ("gperftools"
        ,(dart-pkg "gperftools" "02eeed29df112728564a5dde6417fa4622b57a06"
                   "1j5yx7v1g8ljzv5hs2452q736gdf1xm5x9w5d1csm5bjlryxaykm"
                   "https://github.com/gperftools/gperftools"))
       ("root-certificates"
        ,(dart-pkg "root-certificates"
          "16ef64be64c7dfdff2b9f4b910726e635ccc519e"
          "1kxadamhz03dlvm3j5xxqjgn0jasgskyjx11ysm3a431ma5j9182"))
       ("observatory-pub-packages"
        ,(dart-pkg "observatory-pub-packages"
                   "4c282bb240b68f407c8c7779a65c68eeb0139dc6"
                   "0p09r24q37i4hyz3n2j75lx9a252zr81jcynap61nfh415xlcv3z"))
       ("dart-pkg-args"
        ,(dart-pkg "args" "0.13.7"
                   "0y3f1kaplxmanw5gqm84l9wqx2nl1vrk11m8kdqqwc7n73fc4kdl"))
       ("dart-pkg-async"
        ,(dart-pkg "async" "2.0.0"
                   "1r0fqdh633426p2h9ynb126s58l30jj3mj0bzvjigbklam7vfjgc"))
       ("dart-pkg-barback"
        ,(dart-pkg "barback" "0.15.2+13"
                   "0n532b2as62nkzq7w9jaxk6gkl78il1kq3q0s1xgcdazmbzx5fb1"))
       ("dart-pkg-bazel-worker"
        ,(dart-pkg "bazel-worker" "v0.1.4"
                   "1cc4jvx9qba76ws2l7ijr8kvl8yydfak965gwrgb88f2r1qp2q46"))
       ("dart-pkg-charcode"
        ,(dart-pkg "charcode" "v1.1.1"
                   "0907828insqsr0ffyz4n2xns4qc77brnm7zv0a6965b53b84pk8b"))
       ("dart-pkg-cli-util"
        ,(dart-pkg "cli-util" "0.1.2+1"
                   "09nqdkyipnb0734ci554gxrl9cic528mlhfad9wibcg6kx7y6gra"))
       ("dart-pkg-collection"
        ,(dart-pkg "collection" "1.14.3"
                   "1rdgvrj67vj27k2052h5k31xc6rays4p4j27a122c1ikxnb4i3bh"))
       ("dart-pkg-convert"
        ,(dart-pkg "convert" "2.0.1"
                   "1v0b6vgzp6i37jja2d2aim6dmig8xfjhi8b553a1909n5pzqxp2g"))
       ("dart-pkg-crypto"
        ,(dart-pkg "crypto" "2.0.2+1"
                   "12v5rw189vrk2n2ryxkf8qcbdx8hf3bf33i552439lzhz0czkvcq"))
       ("dart-pkg-csslib"
        ,(dart-pkg "csslib" "0.14.1"
                   "0zlmbg6vwwc4cha8l2xv73klwzdqg6b43qmhlca0f62lr7k6014w"))
       ("dart-pkg-dart2js-info"
        ,(dart-pkg "dart2js_info" "0.5.5+1"
                   "05rdp96n9rxkjyw7lmn3a9hlbsaxpdn8wp8qnsfjmqv3i8vcypvj"))
       ("dart-pkg-dartdoc"
        ,(dart-pkg "dartdoc" "v0.13.0+3"
                   "1v85510bvjhllr00hgabvn737bh791x1m14qsv7zbxhqnsy2jafj"))
       ("dart-pkg-fixnum"
        ,(dart-pkg "fixnum" "0.10.5"
                   "01j7sj4mnkaxam1bpmhvlxl817dcck92xzpk66m7qbccm58c0giw"))
       ("dart-pkg-func"
        ,(dart-pkg "func" "25eec48146a58967d75330075ab376b3838b18a8"
                   "0xcfnca5sa5hc62g14xx11qqv9xjamsaqqn1cmldb917qnxb7lkk"))
       ("dart-pkg-glob"
        ,(dart-pkg "glob" "1.1.5"
                   "1lbd7lkxvw0q5zvz2hxvc035mxakmzcq08lwwr25v56s9ybavh93"))
       ("dart-pkg-html"
        ,(dart-pkg "html" "0.13.2"
                   "0w0gn8camhqhclmlf5g1mp03nssl2gyghqkmcz0zrvkicc1d5r1s"))
       ("dart-pkg-http"
        ,(dart-pkg "http" "0.11.3+14"
                   "1a1k8m2gp8a02q9bw40bqj7ad9yx44ap0w4xr7s26lridi7isylc"))
       ("dart-pkg-http-multi-server"
        ,(dart-pkg "http_multi_server" "2.0.4"
                   "09x4alr181p6s3zxqflgmhglglxr4aaaz6ys7pp0r715dq50qz4n"))
       ("dart-pkg-http-parser"
        ,(dart-pkg "http-parser" "3.1.1"
                   "18p8cqanxbxsxk3wwvisgb1bxdy83vkh3l11h0cys7gxrz6z2g12"))
       ("dart-pkg-http-throttle"
        ,(dart-pkg "http-throttle" "1.0.1"
                   "1q0pv1px5rd7zjd799pnq5zcr825ya1yqnxyvdr91rlga621hdbj"))
       ("dart-pkg-intl"
        ,(dart-pkg "intl" "0.15.2"
                   "0vd0a3pqmfs03kf12mmg0rrpian0f35ja0x332mr7cx8h9d7pmqx"))
       ("dart-pkg-isolate"
        ,(dart-pkg "isolate" "1.1.0"
                   "12m97zhm8qwpraf6nyvj1nawssygrwz0zka7843ayj3vxx6j34xr"))
       ("dart-pkg-json-rpc-2"
        ,(dart-pkg "json_rpc_2" "2.0.4"
                   "1q2x6gy7l7agr930k4r6vncfzjcnp43chq9fwxfa0p0nyccnixz3"))
       ("dart-pkg-linter"
        ,(dart-pkg "linter" "0.1.39"
                   "0wfd6bzfny5bis3r2ygj89kyd2gl618x7hk06qp4h9nvbpsvvz0n"))
       ("dart-pkg-logging"
        ,(dart-pkg "logging" "0.11.3+1"
                   "180w376jz2wmfijcfg07ygfpc6i68i4zibw2421xvwcjhi0q07kv"))
       ("dart-pkg-markdown"
        ,(dart-pkg "markdown" "0.11.4"
                   "009qw47k3lrl2fkdn378l41dga493alspywrk3z93yy1pqaf1j5n"))
       ("dart-pkg-matcher"
        ,(dart-pkg "matcher" "0.12.1+4"
                   "1q0hbcc5ys5zpml7blsyj0d1f42w67vr6x19vxg34sra3bv0h2xx"))
       ("dart-pkg-mime"
        ,(dart-pkg "mime" "0.9.4"
                   "1bh4xla0qlaz9cm1qgxqq57l76b2zh5qqk9pax7sc57s79zi1nmz"))
       ("dart-pkg-mockito"
        ,(dart-pkg "mockito" "2.0.2"
                   "1q1zlv3fwfjbmwm141wj19vglx15s8xkqzdsqz9hhv6gg7h45gsl"))
       ("dart-pkg-mustache4dart"
        ,(dart-pkg "mustache4dart" "v2.1.0"
                   "0wsmg2xvpp2h9rqcg65icymh2s9hifq6v700mni65ky33dah9ji1"
                   "https://github.com/valotas/mustache4dart"))
       ("dart-pkg-oauth2"
        ,(dart-pkg "oauth2" "1.1.0"
                   "1519799j61sdka6p1n6ba768v5a8q4q9w6y957dzqigwaf19p9v5"))
       ("dart-pkg-path"
        ,(dart-pkg "path" "1.4.2"
                   "0ld39rpzla8wd4c2kx1kycdk66cwypklxki58nb18959j2749fbi"))
       ("dart-pkg-plugin"
        ,(dart-pkg "plugin" "0.2.0"
                   "10sgglzpwr9hkdhr6r4d1kvazv49zdhc9cr2asxdk5531347kk9m"))
       ("dart-pkg-pool"
        ,(dart-pkg "pool" "1.3.3"
                   "1cljnzsrbjgkif8rj1vxrzp5rz2xak265pasachdcg4yh2hl0y7d"))
       ("dart-pkg-protobuf"
        ,(dart-pkg "protobuf" "0.5.4"
                   "1wjb8da0da0gda0f83dl2dvl5w4a6gvq5xcg1yrgg3xjs7gzy8dd"))
       ("dart-pkg-pub"
        ,(dart-pkg "pub" "cde958f157d3662bf968bcbed05580d5c0355e89"
                   "1g1cw4c0811l3pvc80fvb7s04shzxvxrcb25195s7kjjfiivgqi4"))
       ("dart-pkg-pub-semver"
        ,(dart-pkg "pub-semver" "1.3.2"
                   "15s6zn2qyyfc5lf8ip5h8j3sq5miz4vrzxbgbwi5vv91d53miia8"))
       ("dart-pkg-quiver"
        ,(dart-pkg "quiver" "0.25.0"
                   "02wqrk266s0ias9lfy7l5dh9ni2r697n3z42h4sgzxy7qg4rip24"
                   "https://github.com/google/quiver-dart"))
       ("dart-pkg-resource"
        ,(dart-pkg "resource" "af5a5bf65511943398146cf146e466e5f0b95cb9"
                   "1jq4bmg65jrpyqxcvbp87d5qqpgmv5ylfz3w1djzimq5jhr9k4vn"))
       ("dart-pkg-scheduled-test"
        ,(dart-pkg "scheduled-test" "0.12.11+1"
                   "1xk66f68m443yig5672p0dpack2c0kpkyk2d7f8iaq22q5zq7h1w"))
       ("dart-pkg-shelf"
        ,(dart-pkg "shelf" "0.6.8"
                   "0vl4m47yhjvc1nynyzc42bks4mzv877vsy7fbcv9w2fjh05sxhb9"))
       ("dart-pkg-shelf-packages-handler"
        ,(dart-pkg "shelf-packages-handler" "1.0.3"
                   "0iccfa713jyg7bb7fx144i5rl0afyfxvb3pi56igw2gdwklq4yck"))
       ("dart-pkg-shelf-static"
        ,(dart-pkg "shelf-static" "0.2.4"
                   "1gfyjqvv13d3zpnaahv5fi601ag7mr8crm94xawlvgvpqgpl0hsh"))
       ("dart-pkg-shelf-web-socket"
        ,(dart-pkg "shelf-web-socket" "0.2.1"
                   "18krh9bnbshwjjl47k15x9g3r7s5k0yichvn3gdsddjqjgp6vfp8"))
       ("dart-pkg-source-map-stack-trace"
        ,(dart-pkg "source-map-stack-trace" "1.1.4"
                   "1cpyq1vdfc623k8cdx673v2kkv112hzsrsyaxd8dd82v23caglva"))
       ("dart-pkg-source-maps"
        ,(dart-pkg "source-maps" "0.10.4"
                   "11dmncxgv8q40am73dxlxgzkfaanvgc9p3lds77m96mb1k27zbkf"))
       ("dart-pkg-source-span"
        ,(dart-pkg "source-span" "1.4.0"
                   "0gpa15p5rcilgl0paqa7f9fkiks7kyalzl2r0sd37m4cry9cf0vz"))
       ("dart-pkg-stack-trace"
        ,(dart-pkg "stack-trace" "1.8.2"
                   "0n21n2dv371bfcw6q83xwb8x26d1rd49cvx5qzm8mi0006h9frzs"))
       ("dart-pkg-stream-channel"
        ,(dart-pkg "stream-channel" "1.6.2"
                   "02ixi6vsja2cc22jcflp89v5wsbj45fl23p0sgaayqaj6l1jcxm1"))
       ("dart-pkg-string-scanner"
        ,(dart-pkg "string-scanner" "1.0.2"
                   "13hfnc704c9qipcvjinbv1hbq57hs5l2f68kyw282dlrcbbwwksy"))
       ("dart-pkg-term-glyph"
        ,(dart-pkg "term-glyph" "1.0.0"
                   "1nxqg345k2zh0yn498mxxdi7v1q3651z5invv0llfvs17ly2h2pz"))
       ("dart-pkg-test"
        ,(dart-pkg "test" "0.12.24+6"
                   "1xkmvwx30zm5ci1gn53hf6zrxymlq9cn9waa00k3ihxbd64mxg1k"))
       ("dart-pkg-test-reflective-loader"
        ,(dart-pkg "test-reflective-loader" "0.1.0"
                   "1qmbayg6js96lcy9s6grly1y6rh9x5mbyqygnr58zsdypzvhr4hr"))
       ("dart-pkg-tuple"
        ,(dart-pkg "tuple" "v1.0.1"
                   "0khkwq1blc90lgdcy4i8ng4nzppmhg31nziw4sc36axwbwdnpc86"))
       ("dart-pkg-typed-data"
        ,(dart-pkg "typed-data" "1.1.3"
                   "1zr9la34lib0rdfdf0539hdai2j71kf3s4ynsal7hw4pqvkdwi72"))
       ("dart-pkg-unittest"
        ,(dart-pkg "test" "0.11.7"
                   "1xbx2i2glmqlc3cz8x91anhf8d4hsr3bq9j53qliawz8j6q9anf8"))
       ("dart-pkg-usage"
        ,(dart-pkg "usage" "3.3.0"
                   "0r8d0q4ij42c7axclwns61cyrxpmk1qpggqfiqfm5vbmh8gpfm3b"))
       ("dart-pkg-utf"
        ,(dart-pkg "utf" "0.9.0+3"
                   "07jppjvg8bc8plzq910b8ld32l6x35i8qwy0mdqimydjjaslj78f"))
       ("dart-pkg-watcher"
        ,(dart-pkg "watcher" "0.9.7+4"
                   "09jpk98qb5j5250sr9r9ic17gj741yjy1p2j50zzl47a9wydfjly"))
       ("dart-pkg-web-socket-channel"
        ,(dart-pkg "web-socket-channel" "1.0.6"
                   "1phb2n3n6npzwl08nnp1aggcjmvwx516b816q4hsx8w190yr4f86"))
       ("dart-pkg-yaml"
        ,(dart-pkg "yaml" "2.1.12"
                   "0m2xr36vd2v3yirv1jb5v3dncsczn8n34s9fmqcm2ld979b4vanm"))
       ("dart-pkgtested-dart-style"
        ,(dart-pkg "dart-style" "1.0.7"
                   "0qym7z5n4w4jy75fnvcyza3hw0nrm8kli5mv65drr16f8pkr0lcg"))
       ("dart-pkgtested-package-config"
        ,(dart-pkg "package-config" "1.0.3"
                   "03w67nb1dhi2yqb63z1301p88hjws1d8azmw8m5ap4zapqdbhzgn"))
       ("dart-pkgtested-package-resolver"
        ,(dart-pkg "package-resolver" "1.0.2+1"
                   "0qs7zmxjwqqjkq6mqnz8b3rj142hyz1x0v1innh8n3bwmljgp3w9"))))
    (native-inputs
     `(("python" ,python-2)
       ("python2-gyp" ,python2-gyp)
       ("perl" ,perl)
       ("go" ,go)
       ("gn" ,gn-for-dart-bootstrap)
       ("ninja" ,ninja)
       ("gcc" ,gcc-6)))
    (build-system gnu-build-system)
    (home-page "https://dart.dev")
    (synopsis "The Dart SDK, including the VM, dart2js and core libraries")
    (description "Dart is a programming language which is:
@enumerate
@item Optimized for UI
@item Supports hot reload
@item Supported both on desktop and on mobile
@end")
    (license license:bsd-3)))

(define-public dart-2.0.0-dev.20.0
  (package
    (inherit dart-2.0.0-dev.8.0)
    (name "dart")
    (version "2.0.0-dev.20.0")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/dart-lang/sdk")
             (commit version)))
       (file-name (string-append name "-" version))
       (sha256
        (base32
         "1k2zc27r3b7ha5bvlhaqr75xiyf6rg7nwk3r0qrjl7dk9k50iyix"))))
    (arguments
     (substitute-keyword-arguments (package-arguments dart-2.0.0-dev.8.0)
       ((#:phases phases)
        `(modify-phases ,phases
           (add-before 'configure 'set-dart-path
             (lambda* (#:key inputs propagated-inputs #:allow-other-keys)
               (substitute* "runtime/observatory/BUILD.gn"
                 (("\"--sdk=True\" \\]")
                  (string-append
                   "\"--sdk=True\", "
                   "\"--dart-executable\","
                   "\"" (assoc-ref inputs "dart") "/bin/dart\","
                   "\"--pub-executable\","
                   "\"" (assoc-ref inputs "dart") "/bin/pub\" ]")))
               (substitute* "tools/utils.py"
                 (("os.path.join\\(CheckedInSdkPath\\(\\), 'bin', name)")
                  (string-append "os.path.join(\""
                                 (assoc-ref %build-inputs "dart")
                                 "/bin/\", name)")))
               (substitute* "build/prebuilt_dart_sdk.gni"
                 (("\\$_dart_root/tools/sdks/\\$host_os/dart-sdk/bin/")
                  (string-append (assoc-ref %build-inputs "dart") "/bin/")))))
           (add-before 'configure 'disable-Werror
             (lambda _
               (substitute* "runtime/BUILD.gn"
                 (("\"-Werror\"") "# -Werror")
                 (("\"-Wall\"") "# -Wall")
                 (("\"-Wextra\"") "# -Wextra"))
               (substitute* "build/config/compiler/BUILD.gn"
                 (("\"-Wl,--icf=all\"") "")
                 (("\"-Wall") "# \"-Wall")
                 (("\"-Wextra") "# \"-Wextra")
                 (("\"-Werror") "# \"-Werror"))))
           (add-before 'configure 'fix-get-timestamp
             (lambda _
               (substitute* "tools/make_version.py"
                 (("utils.GetGitTimestamp") "\"0\" # "))))
           (add-before 'configure 'fix-zlib-build
             (lambda _
               (substitute* "third_party/zlib/BUILD.gn"
                 (("direct_dependent_configs") "# direct_dependent_configs")
                 (("\"//base\",") ""))))))))
    (native-inputs
     (cons `("dart" ,dart-2.0.0-dev.8.0)
           (package-native-inputs dart-2.0.0-dev.8.0)))))

(define (replace-inputs pkg inputs)
  "Replace multiple inputs at once.  `PKG' is the source package and
`INPUTS' the list of replacements."
  (fold (lambda (pkg inputs)
          (match-let (((name pkg) pkg))
            (alist-replace name (list pkg) inputs)))
        (package-inputs pkg)
        inputs))

(define-public dart-2.0.0-dev.36.0
  (package
    (inherit dart-2.0.0-dev.20.0)
    (name "dart")
    ;; This version adds jsonEncode, required to build 2.0
    (version "2.0.0-dev.36.0")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/dart-lang/sdk")
             (commit version)))
       (file-name (string-append name "-" version))
       (sha256
        (base32
         "0q5am2c9mva96slv7flabs0h0hhc65hk0hsy9axgi0s1xnzrxlmp"))))
    (arguments
     (substitute-keyword-arguments (package-arguments dart-2.0.0-dev.20.0)
       ((#:phases phases)
        `(modify-phases ,phases
           (add-before 'configure 'copy-bootstrap-dart
             (lambda* (#:key inputs #:allow-other-keys)
               (copy-recursively
                (assoc-ref inputs "dart")
                "tools/sdks/linux/dart-sdk")))))))
    (inputs
     (append
      `(("dart-pkg-http-io"
         ,(dart-pkg "http-io" "35dc43c9144cf7ed4236843dacd62ebaf89df21a"
                    "1f23dpvig3c6966fhiz1mbmswkx0fqwxmprm8237ymgpji5hp6rw"))
        ("dart-pkg-http-retry"
         ,(dart-pkg "http-retry" "0.1.0"
                    "1qr92gjfgyxg2vcfw7vynahz5cd3h7gwf75djwrrjxs4ccabj24k"))
        ("dart-pkg-test-descriptor"
         ,(dart-pkg "test-descriptor" "1.0.3"
                    "0gvj8q1h07qprgx9jjljjasx65pzrsviyfhkbdk7c6znxs7kmdq1"))
        ("dart-pkg-test-process"
         ,(dart-pkg "test-process" "1.0.1"
                    "1vbni0kr6fz6nb8wfn6sxx8cnwp19xb8l548371qs8xf25lg61q3")))
      (replace-inputs
       dart-2.0.0-dev.8.0
       `(("root-certificates"
          ,(dart-pkg "root-certificates"
                     "a4c7c6f23a664a37bc1b6f15a819e3f2a292791a"
                     "0646gywipvk9m4l17f6c1mi9hhimcsh0x5vdkczhy5zhm8w6l9v7"))
         ("dart-pkg-async"
          ,(dart-pkg "async" "corelib_2_2_1"
                     "1j3n02ricaf97wigsqdnnsj1ahw3d92ybp3kckrki4rlrq87a75v"))
         ("dart-pkg-bazel-worker"
          ,(dart-pkg "bazel-worker" "v0.1.9"
                     "1579a3kdif93mazz5wlny3axib04aysgfpgnx3fjxfnl60cw52b7"))
         ("dart-pkg-collection"
          ,(dart-pkg "collection" "1.14.5"
                     "1w46ffqd2808haqr49wf1f05qigwswhn904ph1qvb1fwlybj9s3p"))
         ("dart-pkg-dartdoc"
          ,(dart-pkg "dartdoc" "v0.16.0"
                     "0g17y9s4xf79bsccs3cybxal6yisbz1qhwqyzg7hdivb6jx6qqgn"))
         ("dart-pkg-html"
          ,(dart-pkg "html" "0.13.2+2"
                     "16xgff229r4palkgahbmby6hxi59wswg45l04q083ym6l4mwkac1"))
         ("dart-pkg-json-rpc-2"
          ,(dart-pkg "json_rpc_2" "2.0.6"
                     "0a0rjws0g9vpivjgpzv7k1j4i57qma447si0ipihk5sifvjhqjpn"))
         ("dart-pkg-linter"
          ,(dart-pkg "linter" "0.1.43"
                     "0jaqh5jmqhmkajgbza7ij6w6fwafpr7shs1ad9dskhg57d0kkkp3"))
         ("dart-pkg-path"
          ,(dart-pkg "path" "1.5.1"
                     "1121qy0k59va7wsbcc96pnvs0226c2s3iyjc2xycvv2nm4y84hyz"))
         ("dart-pkg-plugin"
          ,(dart-pkg "plugin" "0.2.0+2"
                     "1nxr7b636vyrjqrism7s4mhazyac3qdq3b0g3xph2naknxipbnrx"))
         ("dart-pkg-pub"
          ,(dart-pkg "pub" "64c5f40adf6828da1b63320dd39bcedbef1354c6"
                     "1sb5kv41v0q4b1nqdc4vm9wg64schywadj5iz3g4k95q5j2i1q26"))
         ("dart-pkg-markdown"
          ,(dart-pkg "markdown" "1.0.0"
                     "0001k41sf7d9yf70jbmm5nxjby75x5ka1wg5yjl1zyggwxfcdv25"))
         ("dart-pkg-mime"
          ,(dart-pkg "mime" "0.9.6"
                     "1wazn5zwc59idd9yf85llwnwdk8m0mvcsn8b8bakm7j5rqzqxz4j"))
         ("dart-pkg-mockito"
          ,(dart-pkg "mockito" "a92db054fba18bc2d605be7670aee74b7cadc00a"
                     "0p3zxd83i61w4p4sf40zdq2cn8s3yg9ij1ydww4x32d42nsh7vmv"))
         ("dart-pkg-pool"
          ,(dart-pkg "pool" "1.3.4"
                     "087b60d07c9j8qa3dk1g1mz8yisxxhmjmqcnwkr2rpai89ji0mfm"))
         ("dart-pkg-protobuf"
          ,(dart-pkg "protobuf" "0.7.0"
                     "0kfpdw4cj74qpy5w7zx13kvw9bjz8ps6zdsycfx3hc4ml7876c4v"))
         ("dart-pkg-quiver"
          ,(dart-pkg "quiver" "0.28.0"
                     "1zji18fw1sb4y88snaxmz632v9px0z4c2wlh3bfwncsrc3h49i7z"
                     "https://github.com/google/quiver-dart"))
         ("dart-pkg-shelf"
          ,(dart-pkg "shelf" "0.7.1"
                     "199ivhgbf18x3zh5v3sr7dkkp8ndnvy6mb8r1brv01bykhkwp1k9"))
         ("dart-pkg-stack-trace"
          ,(dart-pkg "stack-trace" "1.9.0"
                     "1rb1nn9k8lwghx3kzfbfza1zdmd9s07xpgchv4lakd4hw7wbkvm6"))
         ("dart-pkg-test"
          ,(dart-pkg "test" "0.12.30+1"
                     "03n7cr1a3ajw6nb54iwwiyjmyyp63nrn9fbk6fsjyfx9ahgsxj18"))
         ("dart-pkg-utf"
          ,(dart-pkg "utf" "0.9.0+4"
                     "0lsdjfds1c6mcpgw4w5bvfbvhs1iyjb2yx0kggd4yky4gq6109r5"))
         ("dart-pkg-watcher"
          ,(dart-pkg "watcher" "0.9.7+7"
                     "1y50zzln9a5qqrzrgd62wwj0a6qhfsv9jj0wya8mlsp9xpq1bhbd"))
         ("dart-pkg-web-socket-channel"
          ,(dart-pkg "web-socket-channel"
                     "c2a2874b6e6366654e8b98fe1ef20a9f3d798eee"
                     "13wk7al7v7fynggq3x73y68yzs0wm7jziwv0m2qh5986i6wkcw78"))
         ("dart-pkgtested-dart-style"
          ,(dart-pkg
            "dart-style" "1.0.9"
            "0wsyb6giffz8w03wqfrlwj88igcnj33gxzfcmpsv8kb5spd2v8pk"))))))
    (native-inputs
     (alist-replace "dart" `(,dart-2.0.0-dev.20.0)
                    (package-native-inputs dart-2.0.0-dev.20.0)))))

(define-public dart-2.0.0-dev.54.0
  (package
    (inherit dart-2.0.0-dev.36.0)
    ;; This version adds FileMode, required to build 2.0
    (version "2.0.0-dev.54.0")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/dart-lang/sdk")
             (commit version)))
       (sha256
        (base32
         "05m64i6wa9nk3x3dby5yp06aqyl2pd7sk8sm1wiaijbish1q5drc"))))
    (arguments
     (substitute-keyword-arguments (package-arguments dart-2.0.0-dev.36.0)
       ((#:phases phases)
        `(modify-phases ,phases
           (replace 'set-dart-path
             (lambda* (#:key inputs propagated-inputs #:allow-other-keys)
               (substitute* "tools/utils.py"
                 (("os.path.join\\(CheckedInSdkPath\\(\\), 'bin', name)")
                  (string-append "os.path.join(\""
                                 (assoc-ref %build-inputs "dart")
                                 "/bin/\", name)")))))))))
    (inputs
     (replace-inputs
      dart-2.0.0-dev.36.0
      `(("dart-pkg-args"
         ,(dart-pkg "args" "1.4.1"
                    "0ylasxd8v0q80pz0h518yxhbdklabbly1g4n81v8w19vlk2nd8aj"))
        ("dart-pkg-async"
         ,(dart-pkg "async" "2.0.6"
                    "1zibp9hiys9f0y3lpxhbbpg2q824jc7x5gcqdicxpylv7smmcdd5"))
        ("dart-pkg-barback"
         ,(dart-pkg "barback" "0.15.2+14"
                    "17v6l3z3dm4indr1z787mcdgirsz0y34yccsnfs8yf0yb9mbhqk4"))
        ("dart-pkg-collection"
         ,(dart-pkg "collection" "1.14.6"
                    "1majrhazk0ccrrnhxa1pji803r5yywv0a2bmhp5n6sk0a89ps7v7"))
        ("dart-pkg-dart2js-info"
         ,(dart-pkg "dart2js-info" "0.5.6+2"
                    "1k5kylr1805gdsbkvwv8fsh0vv5znikgrd2p2m7mvywlzaaaw5v3"))
        ("dart-pkg-dartdoc"
         ,(dart-pkg "dartdoc" "v0.19.0"
                    "0x95pwvw1b5dwix65rizz15ri2kblw7z6jnq3qb0b9s82b46l7sm"))
        ("dart-pkg-html"
         ,(dart-pkg "html" "0.13.3"
                    "1d78m0f6jvcam4w47733w94ln01rwq9bbk6l219mg6ppczdsps4n"))
        ("dart-pkg-http"
         ,(dart-pkg "http" "0.11.3+16"
                    "1r0gikhy1g2viiic2yfav5xf8xwp21z06blvwmdf4h9fvmj00ac2"))
        ("dart-pkg-http-retry"
         ,(dart-pkg "http-retry" "0.1.1"
                    "1pi6f3jm6kzch8nzdjbwzzyc5spiwl2609c6h7kb2zj6cxyjsm9h"))
        ("dart-pkg-linter"
         ,(dart-pkg "linter" "0.1.46"
                    "03298xfpb1blxh4js2ia73dl077aivfjffdqmy47nilkijwva4cs"))
        ("dart-pkg-markdown"
         ,(dart-pkg "markdown" "1.1.1"
                    "1qj7dmwz6dwq7jsvzxa2qw2fcf68m5yhr8xs8mm65c6rlsxz6vm5"))
        ("dart-pkg-protobuf"
         ,(dart-pkg "protobuf" "0.7.1"
                    "0fwq06ls5x9q8z2xydd0a00lj8mnkn0zdc365qsdnzj8dkgm3006"))
        ("dart-pkg-pub"
         ,(dart-pkg "pub" "875d35005a7d33f367d70a3e31e9d3bad5d1ebd8"
                    "1hb0c9fnyjzd0bz2rmn9ja7ybbwnvyvkmaqh7y1mhg4vk4pzcbmm"))
        ("dart-pkg-quiver"
         ,(dart-pkg "quiver" "5aaa3f58c48608af5b027444d561270b53f15dbf"
                    "0mv97c2f0z0bb1917bjlb903fjjw794pdbv4vk7kcfg1wzp907vl"
                    "https://github.com/google/quiver-dart"))
        ("dart-pkg-scheduled-test"
         ,(dart-pkg "scheduled-test" "0.12.11"
                    "1r631dvq3pwr10kc1wmqvlhx5lc0hx5h2ix9sp462w6yv03ry7rq"))
        ("dart-pkg-shelf"
         ,(dart-pkg "shelf" "0.7.2"
                    "1z88dwjlwf88ckg0wi4b9kcn44c4y4mnkdppxv0g1hg6b07jsd3x"))
        ("dart-pkg-stack-trace"
         ,(dart-pkg "stack-trace" "1.9.2"
                    "1a2mmjs4c7p6g3pr346hqhfx25d4h1i5vb2np03ydh7pkp19lgmw"))
        ("dart-pkg-stream-channel"
         ,(dart-pkg "stream-channel" "1.6.4"
                    "1qj9n0pk7n1zlkdffy70cllqpxkvfqxswr70nw7ycygxm9bsnbwq"))
        ("dart-pkg-test-reflective-loader"
         ,(dart-pkg "test-reflective-loader" "0.1.4"
                    "1rkgpsnl9izfy97dbsc4y53kmiin6pyhj5652bw8sl0z2n6za1pp"))
        ("dart-pkg-yaml"
         ,(dart-pkg "yaml" "2.1.13"
                    "16xnx7xgm8vsf22dzg6p7zyjax5jad5x4ibky3gqkqh7wavfxhwg")))))
    (native-inputs
     (alist-replace "dart" `(,dart-2.0.0-dev.36.0)
                    (package-native-inputs dart-2.0.0-dev.36.0)))))

(define-public dart-2.0.0-dev.65.0-bin-only
  (package
    (inherit dart-2.0.0-dev.54.0)
    ;; This version adds FileMode, required to build 2.0
    (version "2.0.0-dev.65.0-bin-only")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/dart-lang/sdk")
             (commit version)))
       (sha256
        (base32
         "08lvng2ib127d980ib6cflprxzl3figpblras07d5zm1k2fpjzi0"))
       (patches
        (list (search-patch "dart-2.0.0-dev.65-compile-with-dev.54.patch")))))
    (arguments
     (substitute-keyword-arguments (package-arguments dart-2.0.0-dev.54.0)
       ((#:phases phases)
        `(modify-phases ,phases
           (add-after 'add-git-revision 'add-git-HEAD
             (lambda _
               (mkdir-p ".git/logs")
               (with-output-to-file ".git/logs/HEAD"
                 (lambda ()
                   (display "0")))))
           (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 'no-dart-preview
             ;; We are compiling with an older dart version which does not
             ;; support this flag
             (lambda* (#:key inputs propagated-inputs #:allow-other-keys)
               (substitute* "utils/application_snapshot.gni"
                 (("\"--no-preview-dart-2\",") "")
                 (("\"--no-preview-dart-2\"") ""))
               (substitute* "tools/observatory_tool.py"
                 (("'--no-preview-dart-2'") ""))))
           (replace 'build
             ;; This build fails, but the product is enough for next build.
             ;; TODO: check if we can reduce the output generated by previous
             ;; dart version, leading to faster compile times and maybe less
             ;; patches to the build system
             (lambda* (#:key configure-flags #:allow-other-keys)
               (system* "ninja" "-C" "out/Release")
               (system* "ninja" "most" "-C" "out/Release")))
           (replace 'install
             ;; The build is incomplete, so the path is different from previous
             ;; builds
             (lambda* (#:key outputs #:allow-other-keys)
               (let* ((out (assoc-ref outputs "out"))
                      (bin (string-append out "/bin/")))
                 ;; This should depend on the architecture as before
                 (copy-recursively "out/Release/dart-sdk/" out)
                 ;; (mkdir-p bin)
                 (copy-file "out/Release/dart"
                            (string-append bin "/dart"))
                 (copy-file "out/Release/dart_bootstrap"
                            (string-append bin "/dart_bootstrap")))))))))
    (inputs
     (replace-inputs
      dart-2.0.0-dev.54.0
      `(("gperftools"
         ,(dart-pkg "gperftools" "9608fa3bcf8020d35f59fbf70cd3cbe4b015b972"
                    "0amvwrzn5qc0b0jpxpy5g6zkmj97zjh4hhjrd130hsg2lwwcwhy1"
                    "https://github.com/gperftools/gperftools")))))
    (native-inputs
     (alist-replace "dart" `(,dart-2.0.0-dev.54.0)
                    (alist-replace
                     "gcc" `(,gcc-7)
                     (package-native-inputs dart-2.0.0-dev.54.0))))))

(define-public dart-2.0.0-dev.65.0
  (package
    (inherit dart-2.0.0-dev.54.0)
    ;; This version adds FileMode, required to build 2.0
    (version "2.0.0-dev.65.0")
    (source
     ;; FIXME: Inherit
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/dart-lang/sdk")
             (commit version)))
       (sha256
        (base32
         "08lvng2ib127d980ib6cflprxzl3figpblras07d5zm1k2fpjzi0"))))
    (arguments
     ;; Inheriting from the previous, as we don't want the patched phases
     (substitute-keyword-arguments (package-arguments dart-2.0.0-dev.54.0)
       ((#:phases phases)
        `(modify-phases ,phases
           (delete 'no-dart-preview)
           (add-before 'configure 'disable-observatory-tool
             (lambda _
               (substitute* "tools/observatory_tool.py"
                 (("sys.exit\\(main\\(\\)\\)") "sys.exit(0)"))))
           (add-after 'add-git-revision 'add-git-HEAD
             (lambda _
               (mkdir-p ".git/logs")
               (with-output-to-file ".git/logs/HEAD"
                 (lambda ()
                   (display "0")))))
           (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\"")
                  ""))))))))
    (inputs
     (replace-inputs
      dart-2.0.0-dev.65.0-bin-only
      `(("observatory-pub-packages"
         ,(dart-pkg "observatory-pub-packages"
                    "caf0aecfb15077fc7a34d48e9df13606c793fddf"
                    "0c8y33sfp3q1v0f9dgf5x4vz1yz52q9zhqqkv74dyal7pj4q4rzd"))
        ("dart-pkgtested-dart-style"
         ,(dart-pkg "dart-style" "1.0.12"
                    "1fniyq6h1x12ib2aza1fklcp2vg2knljihw3dpng9k196dny26k3"))
        ("dart-pkgtested-package-config"
         ,(dart-pkg "package-config" "1.0.3"
                    "03w67nb1dhi2yqb63z1301p88hjws1d8azmw8m5ap4zapqdbhzgn"))
        ("dart-pkg-async"
         ,(dart-pkg "async" "2.0.7"
                    "1m1izf333jnl740j4nvp7iaqljgyhxrfxn6w0z6jjjl1pn3brhb8"))
        ("dart-pkg-collection"
         ,(dart-pkg "collection" "1.14.10"
                    "1h1n7q345lbcv0lfbxmcy0ncwvr8zzr3p4154k7l7dyqflvnij18"))
        ("dart-pkg-crypto"
         ,(dart-pkg "crypto" "2.0.5"
                    "1s9nhybnkkq363722fdpignm14asw8pyasryz5mkxd1bhh3v44fm"))
        ("dart-pkg-dartdoc"
         ,(dart-pkg "dartdoc" "v0.20.1"
                    "0i860pjq09dl1y20axjw2my2cnkq3jarfiqg9qb7dqs9l6apfcs0"))
        ("dart-pkg-http-throttle"
         ,(dart-pkg "http-throttle" "1.0.2"
                    "0irc3gx7gwv9xwychsd49j8v6r8na4k7lv8vz4008qp2sf90b5fa"))
        ("dart-pkg-mustache4dart"
         ,(dart-pkg "mustache4dart" "v2.1.2"
                    "0gww2g03ybfg3ffn2jz3f6351sqhaqvjfslng6w3l67s4gm3p3y6"
                    "https://github.com/valotas/mustache4dart"))
        ("dart-pkg-pub"
         ,(dart-pkg "pub" "2258022cb7fd6ec43900d3b88012efb268020019"
                    "0f1nj564mps7mzmpbyj7h4za8cv5d3wsck97262yzk9wz9wl4sls"))
        ("dart-pkg-pub-semver"
         ,(dart-pkg "pub-semver" "1.4.1"
                    "0sql7q00ydpxcgnscgjrg7mlykjwp0s77v3ik8lj1fdr86iqsiix"))
        ("dart-pkg-shelf-web-socket"
         ,(dart-pkg "shelf-web-socket" "0.2.2"
                    "0p36dkx4picaf7lxcysjm8wfz0x3s55i5j3dj6d36y9avvgjq5fr")))))
    (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)))))

(define-public dart-2.1.0-dev.6.0
  (package
    (inherit dart-2.1.0-dev.5.0)
    (version "2.1.0-dev.6.0")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/dart-lang/sdk")
             (commit version)))
       (sha256
        (base32
         "04x0zgz4ns0njkga81lds61r53il1rllj5k2gq83vl8dr8ksq6r5"))))
    (native-inputs
     (alist-replace "dart" `(,dart-2.1.0-dev.5.0)
                    (package-native-inputs dart-2.1.0-dev.5.0)))))

debug log:

solving 38c2484eb4 ...
found 38c2484eb4 in https://yhetil.org/guix/20201129173414.8984-10-nicolo@nixo.xyz/
found 22e1900361 in https://yhetil.org/guix/20201129173414.8984-9-nicolo@nixo.xyz/
found ba0e528059 in https://yhetil.org/guix/20201129173414.8984-8-nicolo@nixo.xyz/
found 1ebea4979e in https://yhetil.org/guix/20201129173414.8984-7-nicolo@nixo.xyz/
found 9fcd483168 in https://yhetil.org/guix/20201129173414.8984-6-nicolo@nixo.xyz/
found 20da998b49 in https://yhetil.org/guix/20201129173414.8984-5-nicolo@nixo.xyz/
found c2463a676c in https://yhetil.org/guix/20201129173414.8984-4-nicolo@nixo.xyz/
found 07e3dcee21 in https://yhetil.org/guix/20201129173414.8984-3-nicolo@nixo.xyz/
found f8af8696bc in https://yhetil.org/guix/20201129173414.8984-2-nicolo@nixo.xyz/

applying [1/9] https://yhetil.org/guix/20201129173414.8984-2-nicolo@nixo.xyz/
diff --git a/gnu/packages/dart.scm b/gnu/packages/dart.scm
new file mode 100644
index 0000000000..f8af8696bc


applying [2/9] https://yhetil.org/guix/20201129173414.8984-3-nicolo@nixo.xyz/
diff --git a/gnu/packages/dart.scm b/gnu/packages/dart.scm
index f8af8696bc..07e3dcee21 100644


applying [3/9] https://yhetil.org/guix/20201129173414.8984-4-nicolo@nixo.xyz/
diff --git a/gnu/packages/dart.scm b/gnu/packages/dart.scm
index 07e3dcee21..c2463a676c 100644


applying [4/9] https://yhetil.org/guix/20201129173414.8984-5-nicolo@nixo.xyz/
diff --git a/gnu/packages/dart.scm b/gnu/packages/dart.scm
index c2463a676c..20da998b49 100644


applying [5/9] https://yhetil.org/guix/20201129173414.8984-6-nicolo@nixo.xyz/
diff --git a/gnu/packages/dart.scm b/gnu/packages/dart.scm
index 20da998b49..9fcd483168 100644


applying [6/9] https://yhetil.org/guix/20201129173414.8984-7-nicolo@nixo.xyz/
diff --git a/gnu/packages/dart.scm b/gnu/packages/dart.scm
index 9fcd483168..1ebea4979e 100644


applying [7/9] https://yhetil.org/guix/20201129173414.8984-8-nicolo@nixo.xyz/
diff --git a/gnu/packages/dart.scm b/gnu/packages/dart.scm
index 1ebea4979e..ba0e528059 100644


applying [8/9] https://yhetil.org/guix/20201129173414.8984-9-nicolo@nixo.xyz/
diff --git a/gnu/packages/dart.scm b/gnu/packages/dart.scm
index ba0e528059..22e1900361 100644


applying [9/9] https://yhetil.org/guix/20201129173414.8984-10-nicolo@nixo.xyz/
diff --git a/gnu/packages/dart.scm b/gnu/packages/dart.scm
index 22e1900361..38c2484eb4 100644

Checking patch gnu/packages/dart.scm...
9:47: new blank line at EOF.
+
Applied patch gnu/packages/dart.scm cleanly.
Checking patch gnu/packages/dart.scm...
Applied patch gnu/packages/dart.scm cleanly.
Checking patch gnu/packages/dart.scm...
Applied patch gnu/packages/dart.scm cleanly.
Checking patch gnu/packages/dart.scm...
Applied patch gnu/packages/dart.scm cleanly.
Checking patch gnu/packages/dart.scm...
Applied patch gnu/packages/dart.scm cleanly.
Checking patch gnu/packages/dart.scm...
Applied patch gnu/packages/dart.scm cleanly.
Checking patch gnu/packages/dart.scm...
Applied patch gnu/packages/dart.scm cleanly.
Checking patch gnu/packages/dart.scm...
Applied patch gnu/packages/dart.scm cleanly.
Checking patch gnu/packages/dart.scm...
Applied patch gnu/packages/dart.scm cleanly.
warning: 1 line adds whitespace errors.

index at:
100644 38c2484eb4592333caa7a089a47ca3784e601daa	gnu/packages/dart.scm

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.