about summary refs log tree commit diff
path: root/pkgs/development/compilers/flutter/update/get-engine-hashes.nix.in
blob: f61b9b14fd07ae8b80043b6c8637b47d7688cf8a (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
{ callPackage, symlinkJoin, lib }:
let
  nixpkgsRoot = "@nixpkgs_root@";
  engineVersion = "@engine_version@";

  systemPlatforms = [
    "x86_64-linux"
    "aarch64-linux"
  ];

  derivations = builtins.map
    (systemPlatform: callPackage "${nixpkgsRoot}/pkgs/development/compilers/flutter/engine/source.nix" {
      targetPlatform = lib.systems.elaborate systemPlatform;
      version = engineVersion;
      url = "https://github.com/flutter/engine.git@${engineVersion}";
      hashes."${systemPlatform}" = lib.fakeSha256;
    })
    systemPlatforms;
in
symlinkJoin {
  name = "evaluate-derivations";
  paths = derivations;
}