2020-11-03 02:18:15 +00:00
|
|
|
{ callPackage, dart }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
2020-11-03 02:18:15 +00: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"; };
|
2020-04-24 23:36:52 +00:00
|
|
|
mkFlutter = opts: callPackage (import ./flutter.nix opts) { };
|
|
|
|
getPatches = dir:
|
|
|
|
let files = builtins.attrNames (builtins.readDir dir);
|
|
|
|
in map (f: dir + ("/" + f)) files;
|
|
|
|
in {
|
2020-09-25 04:45:31 +00:00
|
|
|
mkFlutter = mkFlutter;
|
2020-08-20 17:08:02 +00:00
|
|
|
stable = mkFlutter rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "flutter";
|
|
|
|
channel = "stable";
|
2020-11-03 02:18:15 +00:00
|
|
|
version = "1.22.0";
|
2020-08-20 17:08:02 +00:00
|
|
|
filename = "flutter_linux_${version}-${channel}.tar.xz";
|
2020-11-03 02:18:15 +00:00
|
|
|
sha256Hash = "0ryrx458ss8ryhmspcfrhjvad2pl46bxh1qk5vzwzhxiqdc79vm8";
|
2020-04-24 23:36:52 +00:00
|
|
|
patches = getPatches ./patches/stable;
|
2020-11-03 02:18:15 +00:00
|
|
|
dart = dart_stable;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
beta = mkFlutter rec {
|
2020-11-03 02:18:15 +00:00
|
|
|
pname = "flutter";
|
2020-04-24 23:36:52 +00:00
|
|
|
channel = "beta";
|
2020-11-03 02:18:15 +00:00
|
|
|
version = "1.22.0-12.3.pre";
|
2020-08-20 17:08:02 +00:00
|
|
|
filename = "flutter_linux_${version}-${channel}.tar.xz";
|
2020-11-03 02:18:15 +00:00
|
|
|
sha256Hash = "1axzz137z4lgpa09h7bjf52i6dij6a9wmjbha1182db23r09plzh";
|
|
|
|
patches = getPatches ./patches/stable;
|
|
|
|
dart = dart_beta;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
dev = mkFlutter rec {
|
2020-11-03 02:18:15 +00:00
|
|
|
pname = "flutter";
|
2020-04-24 23:36:52 +00:00
|
|
|
channel = "dev";
|
2020-11-03 02:18:15 +00:00
|
|
|
version = "1.23.0-7.0.pre";
|
2020-04-24 23:36:52 +00:00
|
|
|
filename = "flutter_linux_${version}-${channel}.tar.xz";
|
2020-11-03 02:18:15 +00:00
|
|
|
sha256Hash = "166qb4qbv051bc71yj7c0vrkamhvzz3fp3mz318qzm947mydwjj5";
|
|
|
|
patches = getPatches ./patches/dev;
|
|
|
|
dart = dart_dev;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|