bba55970ba
GitOrigin-RevId: 3d1a7716d7f1fccbd7d30ab3b2ed3db831f43bde
22 lines
668 B
Nix
22 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.0.3";
|
|
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 = "14a63cpkp78rgymmlrppds69jsrdarg33dr43nb7s61r0xfh9icm";
|
|
};
|
|
patches = getPatches ./patches;
|
|
};
|
|
}
|