This repository is a Nix flake packaging the Dart toolchain. The flake provides binaries built officially by the Dart team.
It supports three channels: stable, beta, and dev.
Currently, aarch64-linux
, x86_64-linux
, aarch64-darwin
, and x86_64-darwin
systems are supported. The flake doesn't provide binaries for versions that do not support any of these systems.
packages."<version>"
for stable releasespackages."beta-<version>"
for beta releasespackages."dev-<version>"
for dev releasespackages.stable
,packages.beta
, andpackages.dev
for the latest version from stable, beta, and dev correspondinglypackages.default
points topackages.stable
for convinienceoverlays.default
is an overlay that addsdartpkgs
to the packages exposed by the flake
In flake.nix
:
{
inputs = {
dart.url = "github:roman-vanesyan/dart-overlay";
};
outputs = { dart, ... }: { ... };
}
In a shell:
nix run 'github:roman-vanesyan/dart-overlay' # latest stable
nix run 'github:roman-vanesyan/dart-overlay#"3.5.4"' # 3.5.4 from stable channel
nix run 'github:roman-vanesyan/dart-overlay#beta' # latest beta
nix shell 'github:roman-vanesyan/dart-overlay#"dev-3.7.0-27.0.dev"' # 3.7.0-27.0.dev from dev channel
This repository is inspired by https://github.com/mitchellh/zig-overlay.
MIT licensed.