nixpkgs/pkgs/development/compilers/flutter/default.nix

41 lines
1.3 KiB
Nix
Raw Normal View History

2020-10-07 03:54:12 +01:00
{ callPackage, dart }:
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"; };
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
{
mkFlutter = mkFlutter;
2020-06-17 17:27:50 +01:00
stable = mkFlutter rec {
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";
patches = getPatches ./patches/stable;
2020-10-07 03:54:12 +01:00
dart = dart_stable;
};
2020-06-17 17:27:50 +01:00
beta = mkFlutter rec {
2020-10-07 03:54:12 +01:00
pname = "flutter";
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;
};
dev = mkFlutter rec {
2020-10-07 03:54:12 +01:00
pname = "flutter";
channel = "dev";
2020-10-07 03:54:12 +01:00
version = "1.23.0-7.0.pre";
filename = "flutter_linux_${version}-${channel}.tar.xz";
2020-10-07 03:54:12 +01:00
sha256Hash = "166qb4qbv051bc71yj7c0vrkamhvzz3fp3mz318qzm947mydwjj5";
patches = getPatches ./patches/dev;
dart = dart_dev;
};
}