1 { lib, stdenv, fetchFromGitHub, cmake }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-JNcxd86XNNiPkvipVFR3X255boMmq+YcuJXUP4JwInU=";
14 nativeBuildInputs = [ cmake ];
16 # SDK contains libraries and build-system to develop projects for RP2040 chip
17 # We only need to compile pioasm binary
18 sourceRoot = "${src.name}/tools/pioasm";
22 mkdir -p $out/lib/pico-sdk
23 cp -a ../../../* $out/lib/pico-sdk/
24 chmod 755 $out/lib/pico-sdk/tools/pioasm/build/pioasm
29 homepage = "https://github.com/raspberrypi/pico-sdk";
30 description = "SDK provides the headers, libraries and build system necessary to write programs for the RP2040-based devices";
31 license = licenses.bsd3;
32 maintainers = with maintainers; [ muscaln ];
33 platforms = platforms.unix;