depot/third_party/nixpkgs/pkgs/development/compilers/flutter/update/get-artifact-hashes.nix.in
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

49 lines
978 B
Nix

{ 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"
"aarch64-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;
}