33 lines
1 KiB
Nix
33 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-0.0.pre";
|
|
filename = "flutter_linux_${version}-${channel}.tar.xz";
|
|
sha256Hash = "1gjsvsw9wnfcip1hcm0dksgyp23jnvfl98gzj1dl1gyrqdrmj15b";
|
|
patches = getPatches ./patches/beta;
|
|
};
|
|
}
|