Files
Sensor-Watch/flake.nix
T
Chad Norvell 7e1b873798 flake.nix: Add python313
Python is needed to run uf2conv, so the final build step will fail
without it. Most folks will have a global Python to fall back to, but
this change fixes the build for those who don't, and makes the Nix
environment more complete.
2026-04-28 16:35:18 -07:00

33 lines
801 B
Nix

{
description = "A basic flake with a shell";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.systems.url = "github:nix-systems/default";
inputs.flake-utils = {
url = "github:numtide/flake-utils";
inputs.systems.follows = "systems";
};
outputs =
{ nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = pkgs.mkShell {
packages = [
pkgs.bashInteractive
pkgs.gnumake
pkgs.emscripten
pkgs.gcc-arm-embedded
pkgs.python313
];
shellHook = ''
export EM_CACHE=$(pwd)/.emscripten_cache/
'';
};
}
);
}