2021-02-05 17:12:51 +00:00
|
|
|
{ callPackage, fetchurl, dart }:
|
2020-04-24 23:36:52 +00:00
|
|
|
let
|
|
|
|
mkFlutter = opts: callPackage (import ./flutter.nix opts) { };
|
|
|
|
getPatches = dir:
|
|
|
|
let files = builtins.attrNames (builtins.readDir dir);
|
|
|
|
in map (f: dir + ("/" + f)) files;
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "2.2.1";
|
2021-02-05 17:12:51 +00:00
|
|
|
channel = "stable";
|
|
|
|
filename = "flutter_linux_${version}-${channel}.tar.xz";
|
2021-01-09 10:05:03 +00:00
|
|
|
in
|
|
|
|
{
|
2020-09-25 04:45:31 +00:00
|
|
|
mkFlutter = mkFlutter;
|
2020-08-20 17:08:02 +00:00
|
|
|
stable = mkFlutter rec {
|
2021-02-05 17:12:51 +00:00
|
|
|
inherit dart version;
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "flutter";
|
2021-02-05 17:12:51 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://storage.googleapis.com/flutter_infra/releases/${channel}/linux/${filename}";
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "009pwk2casz10gibgjpz08102wxmkq9iq3994b3c2q342g6526g0";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
patches = getPatches ./patches;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|