2022-06-02 02:31:11 +00:00
|
|
|
with import <nixpkgs> { };
|
|
|
|
let
|
|
|
|
sdk_src = fetchFromGitHub {
|
|
|
|
fetchSubmodules = true;
|
|
|
|
owner = "raspberrypi";
|
|
|
|
repo = "pico-sdk";
|
2022-10-04 19:24:47 +00:00
|
|
|
rev = "1.4.0";
|
|
|
|
sha256 = "sha256-i3IAaNcd0EfKNvU104a776O1poDAChlx1m+nP8iFn8E=";
|
2022-06-02 02:31:11 +00:00
|
|
|
};
|
|
|
|
in
|
|
|
|
mkShell rec {
|
|
|
|
name = "pico-env";
|
|
|
|
|
2024-02-04 02:38:44 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2022-06-02 02:31:11 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gnumake
|
|
|
|
cmake
|
|
|
|
ninja
|
|
|
|
python3
|
|
|
|
gcc
|
|
|
|
libusb
|
|
|
|
openocd
|
|
|
|
gcc-arm-embedded
|
2022-10-04 19:24:47 +00:00
|
|
|
picotool
|
2022-06-02 02:31:11 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
PICO_SDK_PATH = sdk_src;
|
|
|
|
}
|