1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/compilers/flutter/default.nix

34 lines
1 KiB
Nix
Raw Normal View History

{ 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 {
2020-06-17 17:27:50 +01:00
stable = mkFlutter rec {
pname = "flutter";
channel = "stable";
2020-06-17 17:27:50 +01:00
version = "1.17.3";
filename = "flutter_linux_${version}-${channel}.tar.xz";
sha256Hash = "16ymnphah0xqf9vn44syznmr66xbkdh4y75ynk7nr8aisrcdd81z";
patches = getPatches ./patches/stable;
};
2020-06-17 17:27:50 +01:00
beta = mkFlutter rec {
pname = "flutter-beta";
channel = "beta";
2020-06-17 17:27:50 +01:00
version = "1.19.0-4.1.pre";
filename = "flutter_linux_${version}-${channel}.tar.xz";
sha256Hash = "002aprwjx7wd79dy6rb61knddb8n23gwa5z8a9dydv0igjw50r32";
patches = getPatches ./patches/beta;
};
dev = mkFlutter rec {
pname = "flutter-dev";
channel = "dev";
2020-06-17 17:27:50 +01:00
version = "1.20.0-0.0.pre";
filename = "flutter_linux_${version}-${channel}.tar.xz";
2020-06-17 17:27:50 +01:00
sha256Hash = "1gjsvsw9wnfcip1hcm0dksgyp23jnvfl98gzj1dl1gyrqdrmj15b";
patches = getPatches ./patches/beta;
};
}