mirror of
https://github.com/h7x4/Jisho-Study-Tool.git
synced 2024-12-21 13:37:29 +01:00
25 lines
668 B
Nix
25 lines
668 B
Nix
{ flutterPackages, fetchurl, dart }:
|
|
let
|
|
dartVersion = "2.16.2";
|
|
flutterVersion = "2.10.5";
|
|
|
|
channel = "stable";
|
|
filename = "flutter_linux_${flutterVersion}-${channel}.tar.xz";
|
|
|
|
getPatches = dir:
|
|
let files = builtins.attrNames (builtins.readDir dir);
|
|
in map (f: dir + ("/" + f)) files;
|
|
in
|
|
{
|
|
flutter = flutterPackages.mkFlutter {
|
|
version = flutterVersion;
|
|
inherit dart;
|
|
pname = "flutter";
|
|
src = fetchurl {
|
|
url = "https://storage.googleapis.com/flutter_infra_release/releases/${channel}/linux/${filename}";
|
|
sha256 = "DTZwxlMUYk8NS1SaWUJolXjD+JnRW73Ps5CdRHDGnt0=";
|
|
};
|
|
patches = getPatches ./flutter_patches;
|
|
};
|
|
}
|