parent
6a882635f2
commit
c5c3be682b
@ -0,0 +1,35 @@ |
||||
{ lib, stdenv, fetchFromGitHub, cmake }: |
||||
|
||||
stdenv.mkDerivation rec { |
||||
pname = "pico-sdk"; |
||||
version = "1.2.0"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "raspberrypi"; |
||||
repo = pname; |
||||
rev = version; |
||||
sha256 = "00z160f7ypws5pzp1ql7xrs3gmjcbw6gywnnq2fiwl47940balns"; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ cmake ]; |
||||
|
||||
# SDK contains libraries and build-system to develop projects for RP2040 chip |
||||
# We only need to compile pioasm binary |
||||
sourceRoot = "source/tools/pioasm"; |
||||
|
||||
installPhase = '' |
||||
runHook preInstall |
||||
mkdir -p $out/lib/pico-sdk |
||||
cp -a ../../../* $out/lib/pico-sdk/ |
||||
chmod 755 $out/lib/pico-sdk/tools/pioasm/build/pioasm |
||||
runHook postInstall |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
homepage = "https://github.com/raspberrypi/picotool"; |
||||
description = "SDK provides the headers, libraries and build system necessary to write programs for the RP2040-based devices"; |
||||
license = licenses.bsd3; |
||||
maintainers = with maintainers; [ musfay ]; |
||||
platforms = platforms.unix; |
||||
}; |
||||
} |
Loading…
Reference in new issue