pico-sdk: 2.0.0 -> 2.1.0 (#364401)

This commit is contained in:
Sandro
2025-01-26 21:26:54 +01:00
committed by GitHub
2 changed files with 47 additions and 23 deletions
+21 -10
View File
@@ -3,6 +3,9 @@
stdenv,
fetchFromGitHub,
cmake,
versionCheckHook,
nix-update-script,
pico-sdk,
# Options
@@ -14,18 +17,18 @@
stdenv.mkDerivation (finalAttrs: {
pname = "pico-sdk";
version = "2.0.0";
version = "2.1.0";
src = fetchFromGitHub {
owner = "raspberrypi";
repo = "pico-sdk";
rev = finalAttrs.version;
tag = finalAttrs.version;
fetchSubmodules = withSubmodules;
hash =
if (withSubmodules) then
"sha256-fVSpBVmjeP5pwkSPhhSCfBaEr/FEtA82mQOe/cHFh0A="
if withSubmodules then
"sha256-nLn6H/P79Jbk3/TIowH2WqmHFCXKEy7lgs7ZqhqJwDM="
else
"sha256-d6mEjuG8S5jvJS4g8e90gFII3sEqUVlT2fgd9M9LUkA=";
"sha256-QKc16Wnx2AvpM0/bklY8CnbsShVR1r5ejtRlvE8f8mM=";
};
nativeBuildInputs = [ cmake ];
@@ -42,11 +45,19 @@ stdenv.mkDerivation (finalAttrs: {
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/raspberrypi/pico-sdk";
passthru = {
updateScript = nix-update-script { };
tests = {
withSubmodules = pico-sdk.override { withSubmodules = true; };
};
};
meta = {
description = "SDK provides the headers, libraries and build system necessary to write programs for the RP2040-based devices";
license = licenses.bsd3;
maintainers = with maintainers; [ muscaln ];
platforms = platforms.unix;
homepage = "https://github.com/raspberrypi/pico-sdk";
changelog = "https://github.com/raspberrypi/pico-sdk/releases/tag/${finalAttrs.version}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ muscaln ];
platforms = lib.platforms.unix;
};
})
+26 -13
View File
@@ -7,17 +7,19 @@
libusb1,
pico-sdk,
mbedtls_2,
versionCheckHook,
gitUpdater,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "picotool";
version = "2.0.0";
version = "2.1.0";
src = fetchFromGitHub {
owner = "raspberrypi";
repo = pname;
rev = version;
sha256 = "sha256-z7EFk3qxg1PoKZQpUQqjhttZ2RkhhhiMdYc9TkXzkwk=";
repo = "picotool";
tag = finalAttrs.version;
hash = "sha256-aGhh19/dl6o/3hbmKJGVh22qSHeCqxST2PoWzxmc7KQ=";
};
postPatch = ''
@@ -42,12 +44,23 @@ stdenv.mkDerivation rec {
install -Dm444 ../udev/99-picotool.rules -t $out/etc/udev/rules.d
'';
meta = with lib; {
homepage = "https://github.com/raspberrypi/picotool";
description = "Tool for interacting with RP2040/RP2350 device(s) in BOOTSEL mode, or with an RP2040/RP2350 binary";
mainProgram = "picotool";
license = licenses.bsd3;
maintainers = with maintainers; [ muscaln ];
platforms = platforms.unix;
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = [ "version" ];
doInstallCheck = true;
passthru = {
updateScript = gitUpdater { };
};
}
meta = {
description = "Tool for interacting with RP2040/RP2350 device(s) in BOOTSEL mode, or with an RP2040/RP2350 binary";
homepage = "https://github.com/raspberrypi/picotool";
changelog = "https://github.com/raspberrypi/picotool/releases/tag/${finalAttrs.version}";
mainProgram = "picotool";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ muscaln ];
platforms = lib.platforms.unix;
};
})