about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/compilers/flutter/update/get-artifact-hashes.nix.in
blob: 069bcdb95718e5f55d2a22dcf6c261aab9d959b9 (plain) (blame)
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
{ callPackage
, flutterPackages
, lib
, symlinkJoin
,
}:
let
  nixpkgsRoot = "@nixpkgs_root@";
  flutterCompactVersion = "@flutter_compact_version@";

  flutterPlatforms = [
    "android"
    "ios"
    "web"
    "linux"
    "windows"
    "macos"
    "fuchsia"
    "universal"
  ];
  systemPlatforms = [
    "x86_64-linux"
    "aarch64-linux"
    "x86_64-darwin"
  ];

  derivations =
    lib.foldl'
      (
        acc: flutterPlatform:
          acc
          ++ (map
            (systemPlatform:
              callPackage "${nixpkgsRoot}/pkgs/development/compilers/flutter/artifacts/fetch-artifacts.nix" {
                flutter = flutterPackages."v${flutterCompactVersion}";
                inherit flutterPlatform;
                inherit systemPlatform;
                hash = lib.fakeSha256;
              })
            systemPlatforms)
      ) [ ]
      flutterPlatforms;
in
symlinkJoin {
  name = "evaluate-derivations";
  paths = derivations;
}