3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/compilers/flutter/default.nix

25 lines
743 B
Nix
Raw Normal View History

{ callPackage, fetchurl, dart }:
let
mkFlutter = opts: callPackage (import ./flutter.nix opts) { };
getPatches = dir:
let files = builtins.attrNames (builtins.readDir dir);
in map (f: dir + ("/" + f)) files;
version = "1.22.5";
channel = "stable";
filename = "flutter_linux_${version}-${channel}.tar.xz";
2021-01-06 20:38:03 +00:00
in
{
mkFlutter = mkFlutter;
2020-06-17 17:27:50 +01:00
stable = mkFlutter rec {
inherit dart version;
pname = "flutter";
patches = getPatches ./patches;
src = fetchurl {
url = "https://storage.googleapis.com/flutter_infra/releases/${channel}/linux/${filename}";
sha256 = "1dv5kczcj9npf7xxlanmpc9ijnxa3ap46521cxn14c0i3y9295ja";
};
depsSha256 = "0d7vhk6axgqajy2d9ia9lc6awcnz6cc3n04r7hnh7bx4hb0jv0l1";
};
}