Created
October 22, 2022 22:32
-
-
Save harryposner/19a2137be26c69bc4f08844ba3cf049b to your computer and use it in GitHub Desktop.
Nix flake for Raspberry Pi Pico projects using C
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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