3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/compilers/flutter/default.nix
2020-07-05 17:22:35 +02:00

34 lines
1 KiB
Nix

{ callPackage }:
let
mkFlutter = opts: callPackage (import ./flutter.nix opts) { };
getPatches = dir:
let files = builtins.attrNames (builtins.readDir dir);
in map (f: dir + ("/" + f)) files;
in {
stable = mkFlutter rec {
pname = "flutter";
channel = "stable";
version = "1.17.5";
filename = "flutter_linux_${version}-${channel}.tar.xz";
sha256Hash = "0kapja3nh7dfhjbn2np02wghijrjnpzsv4hz10fj54hs8hdx19di";
patches = getPatches ./patches/stable;
};
beta = mkFlutter rec {
pname = "flutter-beta";
channel = "beta";
version = "1.19.0-4.3.pre";
filename = "flutter_linux_${version}-${channel}.tar.xz";
sha256Hash = "1hlkvvcfy53g69qnqq29izh5c0ylmx4w9m5kb78x97yld6jzf37p";
patches = getPatches ./patches/beta;
};
dev = mkFlutter rec {
pname = "flutter-dev";
channel = "dev";
version = "1.20.0-3.0.pre";
filename = "flutter_linux_${version}-${channel}.tar.xz";
sha256Hash = "0pi5xmg8b863l07fzx7m7pdzh9gmpfsgva1sahx8a6nxkqdpgc50";
patches = getPatches ./patches/beta;
};
}