159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
36 lines
1 KiB
Nix
36 lines
1 KiB
Nix
{ callPackage, symlinkJoin, lib }:
|
|
let
|
|
nixpkgsRoot = "@nixpkgs_root@";
|
|
version = "@flutter_version@";
|
|
engineVersion = "@engine_version@";
|
|
|
|
systemPlatforms = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
];
|
|
|
|
derivations =
|
|
lib.foldl'
|
|
(
|
|
acc: buildPlatform:
|
|
acc
|
|
++ (map
|
|
(targetPlatform:
|
|
callPackage "${nixpkgsRoot}/pkgs/development/compilers/flutter/engine/source.nix" {
|
|
targetPlatform = lib.systems.elaborate targetPlatform;
|
|
hostPlatform = lib.systems.elaborate buildPlatform;
|
|
buildPlatform = lib.systems.elaborate buildPlatform;
|
|
|
|
flutterVersion = version;
|
|
version = engineVersion;
|
|
url = "https://github.com/flutter/engine.git@${engineVersion}";
|
|
hashes."${buildPlatform}"."${targetPlatform}" = lib.fakeSha256;
|
|
})
|
|
systemPlatforms)
|
|
) [ ]
|
|
systemPlatforms;
|
|
in
|
|
symlinkJoin {
|
|
name = "evaluate-derivations";
|
|
paths = derivations;
|
|
}
|