1{ callPackage, symlinkJoin, stdenv, lib }:
2let
3 nixpkgsRoot = "@nixpkgs_root@";
4 version = "@flutter_version@";
5 engineVersion = "@engine_version@";
6
7 systemPlatforms = [
8 "x86_64-linux"
9 "aarch64-linux"
10 ];
11
12 derivations =
13 lib.foldl'
14 (
15 acc: buildPlatform:
16 acc
17 ++ (map
18 (targetPlatform:
19 callPackage "${nixpkgsRoot}/pkgs/development/compilers/flutter/engine/source.nix" {
20 targetPlatform = lib.systems.elaborate targetPlatform;
21 hostPlatform = lib.systems.elaborate buildPlatform;
22 buildPlatform = lib.systems.elaborate buildPlatform;
23 flutterVersion = version;
24 version = engineVersion;
25 url = "https://github.com/flutter/flutter.git@${engineVersion}";
26 hashes."${buildPlatform}"."${targetPlatform}" = lib.fakeSha256;
27 })
28 systemPlatforms)
29 ) [ ]
30 systemPlatforms;
31in
32symlinkJoin {
33 name = "evaluate-derivations";
34 paths = derivations;
35}