picotool: 1.1.2 -> 2.0.0

Add mbedtls for full feature support.

authored by Thomas Watson and committed by Gaétan Lepage ec22f512 27e910e8

+12 -4
+12 -4
pkgs/development/tools/picotool/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, cmake, pkg-config, libusb1, pico-sdk }: 1 + { lib, stdenv, fetchFromGitHub, cmake, pkg-config, libusb1, pico-sdk, mbedtls_2 }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "picotool"; 5 - version = "1.1.2"; 5 + version = "2.0.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "raspberrypi"; 9 9 repo = pname; 10 10 rev = version; 11 - sha256 = "sha256-OcQJeiva6X2rUyh1rJ+w4O2dWxaR7MwMfbHlnWuBVb8="; 11 + sha256 = "sha256-z7EFk3qxg1PoKZQpUQqjhttZ2RkhhhiMdYc9TkXzkwk="; 12 12 }; 13 13 14 + postPatch = '' 15 + # necessary for signing/hashing support. our pico-sdk does not come with 16 + # it by default, and it shouldn't due to submodule size. pico-sdk uses 17 + # an upstream version of mbedtls 2.x so we patch ours in directly. 18 + substituteInPlace lib/CMakeLists.txt \ 19 + --replace-fail "''$"'{PICO_SDK_PATH}/lib/mbedtls' '${mbedtls_2.src}' 20 + ''; 21 + 14 22 buildInputs = [ libusb1 pico-sdk ]; 15 23 nativeBuildInputs = [ cmake pkg-config ]; 16 24 cmakeFlags = [ "-DPICO_SDK_PATH=${pico-sdk}/lib/pico-sdk" ]; ··· 21 29 22 30 meta = with lib; { 23 31 homepage = "https://github.com/raspberrypi/picotool"; 24 - description = "Tool for interacting with a RP2040 device in BOOTSEL mode, or with a RP2040 binary"; 32 + description = "Tool for interacting with RP2040/RP2350 device(s) in BOOTSEL mode, or with an RP2040/RP2350 binary"; 25 33 mainProgram = "picotool"; 26 34 license = licenses.bsd3; 27 35 maintainers = with maintainers; [ muscaln ];