Initialize pico project

This commit is contained in:
Invariantspace 2024-10-11 18:24:55 -07:00
commit a3030756cb
No known key found for this signature in database
GPG key ID: EBC4A20067373921
5 changed files with 170 additions and 0 deletions

30
flake.nix Normal file
View file

@ -0,0 +1,30 @@
{
inputs = {
crane.url = "github:ipetkov/crane";
flake-utils.url = "github:numtide/flake-utils";
fenix.url = "github:nix-community/fenix";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs = {
self,
crane,
fenix,
flake-utils,
nixpkgs,
}:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
fenixPkgs = fenix.packages.${system};
craneLib = crane.mkLib pkgs;
in {
devShells.default = craneLib.devShell {
packages = with pkgs; [
fenixPkgs.rust-analyzer
elf2uf2-rs
];
RUST_SRC_PATH = "${fenixPkgs.complete.rust-src}/lib/rustlib/src/rust/library";
};
});
}