3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/compilers/flutter/default.nix

23 lines
668 B
Nix
Raw Normal View History

{ callPackage, fetchurl, dart }:
let
mkFlutter = opts: callPackage (import ./flutter.nix opts) { };
getPatches = dir:
let files = builtins.attrNames (builtins.readDir dir);
in map (f: dir + ("/" + f)) files;
2021-06-10 18:53:58 +01:00
version = "2.2.1";
channel = "stable";
filename = "flutter_linux_${version}-${channel}.tar.xz";
2021-01-06 20:38:03 +00:00
in
{
mkFlutter = mkFlutter;
2020-06-17 17:27:50 +01:00
stable = mkFlutter rec {
inherit dart version;
pname = "flutter";
src = fetchurl {
url = "https://storage.googleapis.com/flutter_infra/releases/${channel}/linux/${filename}";
2021-06-10 18:53:58 +01:00
sha256 = "009pwk2casz10gibgjpz08102wxmkq9iq3994b3c2q342g6526g0";
};
patches = getPatches ./patches;
};
}