2020-10-07 03:54:12 +01:00
|
|
|
{ callPackage, dart }:
|
2019-12-24 17:01:45 +00:00
|
|
|
let
|
2020-10-07 03:54:12 +01:00
|
|
|
dart_stable = dart.override { version = "2.10.0"; };
|
|
|
|
dart_beta = dart.override { version = "2.10.0"; };
|
|
|
|
dart_dev = dart.override { version = "2.11.0-161.0.dev"; };
|
2019-12-24 17:01:45 +00:00
|
|
|
mkFlutter = opts: callPackage (import ./flutter.nix opts) { };
|
|
|
|
getPatches = dir:
|
|
|
|
let files = builtins.attrNames (builtins.readDir dir);
|
|
|
|
in map (f: dir + ("/" + f)) files;
|
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 {
|
2019-12-24 17:01:45 +00:00
|
|
|
pname = "flutter";
|
|
|
|
channel = "stable";
|
2020-10-07 03:54:12 +01:00
|
|
|
version = "1.22.0";
|
2020-06-17 17:27:50 +01:00
|
|
|
filename = "flutter_linux_${version}-${channel}.tar.xz";
|
2020-10-07 03:54:12 +01:00
|
|
|
sha256Hash = "0ryrx458ss8ryhmspcfrhjvad2pl46bxh1qk5vzwzhxiqdc79vm8";
|
2019-12-24 17:01:45 +00:00
|
|
|
patches = getPatches ./patches/stable;
|
2020-10-07 03:54:12 +01:00
|
|
|
dart = dart_stable;
|
2019-12-24 17:01:45 +00:00
|
|
|
};
|
2020-06-17 17:27:50 +01:00
|
|
|
beta = mkFlutter rec {
|
2020-10-07 03:54:12 +01:00
|
|
|
pname = "flutter";
|
2019-12-24 17:01:45 +00:00
|
|
|
channel = "beta";
|
2020-10-07 03:54:12 +01:00
|
|
|
version = "1.22.0-12.3.pre";
|
2020-06-17 17:27:50 +01:00
|
|
|
filename = "flutter_linux_${version}-${channel}.tar.xz";
|
2020-10-07 03:54:12 +01:00
|
|
|
sha256Hash = "1axzz137z4lgpa09h7bjf52i6dij6a9wmjbha1182db23r09plzh";
|
|
|
|
patches = getPatches ./patches/stable;
|
|
|
|
dart = dart_beta;
|
2019-12-24 17:01:45 +00:00
|
|
|
};
|
2020-04-04 23:41:19 +01:00
|
|
|
dev = mkFlutter rec {
|
2020-10-07 03:54:12 +01:00
|
|
|
pname = "flutter";
|
2019-12-24 17:01:45 +00:00
|
|
|
channel = "dev";
|
2020-10-07 03:54:12 +01:00
|
|
|
version = "1.23.0-7.0.pre";
|
2020-04-04 23:41:19 +01:00
|
|
|
filename = "flutter_linux_${version}-${channel}.tar.xz";
|
2020-10-07 03:54:12 +01:00
|
|
|
sha256Hash = "166qb4qbv051bc71yj7c0vrkamhvzz3fp3mz318qzm947mydwjj5";
|
|
|
|
patches = getPatches ./patches/dev;
|
|
|
|
dart = dart_dev;
|
2019-12-24 17:01:45 +00:00
|
|
|
};
|
|
|
|
}
|