4a7fb2c8ea
This reverts commit fe90d5a666.
37 lines
972 B
Plaintext
37 lines
972 B
Plaintext
{
|
|
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/flutter.git@${engineVersion}";
|
|
hashes."${buildPlatform}"."${targetPlatform}" = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
|
|
}
|
|
) systemPlatforms)
|
|
) [ ] systemPlatforms;
|
|
in
|
|
symlinkJoin {
|
|
name = "evaluate-derivations";
|
|
paths = derivations;
|
|
}
|