1
0
Fork 0
wasp-os/tools/nix/flake.nix
Francesco Gazzetta 0424efd304 Add nix development shell
Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
2023-08-24 10:16:11 +01:00

20 lines
714 B
Nix

# NOTE: The officially tested toolchain is the one mentioned at
# https://wasp-os.readthedocs.io/en/latest/install.html#install-prerequisites
# So let's not add a flake.lock unless we test (and maintain) this thoroughly too.
{
description = "A MicroPython based development environment for smart watches";
outputs = { self, nixpkgs }:
let
supportedSystems = [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
];
forAllSupportedSystems = nixpkgs.lib.genAttrs supportedSystems;
in {
devShells = forAllSupportedSystems (system: {
default = import ./shell.nix { pkgs = nixpkgs.legacyPackages."${system}"; };
});
};
}