2021-01-29 18:03:58 +00:00
|
|
|
{ callPackage, fetchurl, dart }:
|
2019-12-24 17:01:45 +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-03-21 13:06:57 +00:00
|
|
|
version = "2.0.3";
|
2021-01-29 18:03:58 +00:00
|
|
|
channel = "stable";
|
|
|
|
filename = "flutter_linux_${version}-${channel}.tar.xz";
|
2021-01-06 20:38:03 +00:00
|
|
|
in
|
|
|
|
{
|
2020-08-28 17:13:30 +01:00
|
|
|
mkFlutter = mkFlutter;
|
2020-06-17 17:27:50 +01:00
|
|
|
stable = mkFlutter rec {
|
2021-01-29 18:03:58 +00:00
|
|
|
inherit dart version;
|
2019-12-24 17:01:45 +00:00
|
|
|
pname = "flutter";
|
2021-01-29 18:03:58 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://storage.googleapis.com/flutter_infra/releases/${channel}/linux/${filename}";
|
2021-03-21 13:06:57 +00:00
|
|
|
sha256 = "14a63cpkp78rgymmlrppds69jsrdarg33dr43nb7s61r0xfh9icm";
|
2021-01-29 18:03:58 +00:00
|
|
|
};
|
|
|
|
patches = getPatches ./patches;
|
2019-12-24 17:01:45 +00:00
|
|
|
};
|
|
|
|
}
|