picotool: 2.0.0 -> 2.1.0

This commit is contained in:
Weijia Wang 2025-01-05 01:44:18 +01:00 committed by Gaetan Lepage
parent ca228f3532
commit 8b1b464a82

View File

@ -7,17 +7,19 @@
libusb1, libusb1,
pico-sdk, pico-sdk,
mbedtls_2, mbedtls_2,
versionCheckHook,
gitUpdater,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "picotool"; pname = "picotool";
version = "2.0.0"; version = "2.1.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "raspberrypi"; owner = "raspberrypi";
repo = pname; repo = "picotool";
rev = version; tag = finalAttrs.version;
sha256 = "sha256-z7EFk3qxg1PoKZQpUQqjhttZ2RkhhhiMdYc9TkXzkwk="; hash = "sha256-aGhh19/dl6o/3hbmKJGVh22qSHeCqxST2PoWzxmc7KQ=";
}; };
postPatch = '' postPatch = ''
@ -42,12 +44,23 @@ stdenv.mkDerivation rec {
install -Dm444 ../udev/99-picotool.rules -t $out/etc/udev/rules.d install -Dm444 ../udev/99-picotool.rules -t $out/etc/udev/rules.d
''; '';
meta = with lib; { nativeInstallCheckInputs = [
homepage = "https://github.com/raspberrypi/picotool"; versionCheckHook
description = "Tool for interacting with RP2040/RP2350 device(s) in BOOTSEL mode, or with an RP2040/RP2350 binary"; ];
mainProgram = "picotool"; versionCheckProgramArg = [ "version" ];
license = licenses.bsd3; doInstallCheck = true;
maintainers = with maintainers; [ muscaln ];
platforms = platforms.unix; 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;
};
})