af734f5a8c
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
23 lines
668 B
Nix
23 lines
668 B
Nix
{ 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;
|
|
version = "2.2.1";
|
|
channel = "stable";
|
|
filename = "flutter_linux_${version}-${channel}.tar.xz";
|
|
in
|
|
{
|
|
mkFlutter = mkFlutter;
|
|
stable = mkFlutter rec {
|
|
inherit dart version;
|
|
pname = "flutter";
|
|
src = fetchurl {
|
|
url = "https://storage.googleapis.com/flutter_infra/releases/${channel}/linux/${filename}";
|
|
sha256 = "009pwk2casz10gibgjpz08102wxmkq9iq3994b3c2q342g6526g0";
|
|
};
|
|
patches = getPatches ./patches;
|
|
};
|
|
}
|