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