Skip to content

Instantly share code, notes, and snippets.

@harryposner
Created October 22, 2022 22:32
Show Gist options
  • Save harryposner/19a2137be26c69bc4f08844ba3cf049b to your computer and use it in GitHub Desktop.
Save harryposner/19a2137be26c69bc4f08844ba3cf049b to your computer and use it in GitHub Desktop.
Nix flake for Raspberry Pi Pico projects using C
{
description = "Raspberry Pi Pico projects";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.05";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = import nixpkgs { inherit system; };
in
with pkgs; {
devShell = mkShell {
buildInputs =
[
cmake
gcc-arm-embedded
pico-sdk
];
PICO_SDK_PATH = "${pico-sdk}";
};
}
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment