rpi-imager: 2.0.6 -> 2.0.9 (#522022)

This commit is contained in:
Doron Behar
2026-05-24 10:06:23 +00:00
committed by GitHub
2 changed files with 30 additions and 10 deletions
+5 -2
View File
@@ -7,6 +7,7 @@
gnutls,
libarchive,
libtasn1,
libusb1,
liburing,
nix-update-script,
pkg-config,
@@ -22,13 +23,13 @@
stdenv.mkDerivation (finalAttrs: {
pname = "rpi-imager";
version = "2.0.6";
version = "2.0.9";
src = fetchFromGitHub {
owner = "raspberrypi";
repo = "rpi-imager";
tag = "v${finalAttrs.version}";
hash = "sha256-YbPGxc6EWE3B+7MWgtwTDRdjin9FM7KpWfw38FqKXYA=";
hash = "sha256-hoypze5EyJKRVQNI8x5sh3LqVyK8tEze1/vxogrqckA=";
};
patches = [ ./remove-vendoring.patch ];
@@ -72,6 +73,7 @@ stdenv.mkDerivation (finalAttrs: {
gnutls
libarchive
libtasn1
libusb1
qt6.qtbase
qt6.qtdeclarative
qt6.qtsvg
@@ -124,6 +126,7 @@ stdenv.mkDerivation (finalAttrs: {
mainProgram = "rpi-imager";
maintainers = with lib.maintainers; [
anthonyroussel
agustinmista
];
platforms = lib.platforms.linux ++ lib.platforms.darwin;
# could not find xz
@@ -1,8 +1,8 @@
diff --git i/src/CMakeLists.txt w/src/CMakeLists.txt
index de474c4d..36b6cf2c 100644
--- i/src/CMakeLists.txt
+++ w/src/CMakeLists.txt
@@ -129,26 +129,37 @@ set(BUILD_SHARED_LIBS OFF)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 19f931b..ca78f8f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -158,26 +158,40 @@ set(BUILD_SHARED_LIBS OFF)
include(FetchContent)
# Bundled liblzma
@@ -15,6 +15,9 @@ index de474c4d..36b6cf2c 100644
+find_package(zstd ${ZSTD_VERSION})
+if(NOT zstd_FOUND)
include(dependencies/zstd.cmake)
+else()
+set(ZSTD_LIBRARIES zstd::libzstd_shared)
+set(ZSTD_INCLUDE_DIR ${zstd_INCLUDE_DIR})
+endif()
# Remote nghttp2
@@ -42,11 +45,25 @@ index de474c4d..36b6cf2c 100644
# In version 8.15.0, libcurl dropped support for Secure Transport, because it
# does not implement TLS 1.3. Unfortunately, there was no replacement Network.framework implementation,
# so on macOS we're forced to use the macOS SDK version of libcurl, including libcurl's own OpenSSL-analogue.
@@ -506,7 +517,6 @@ else()
@@ -193,7 +207,13 @@ endif()
# Bundled libusb (for rpiboot Compute Module support)
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(LIBUSB libusb-1.0)
+if(NOT LIBUSB_FOUND)
include(dependencies/libusb.cmake)
+else()
+set(LIBUSB_INCLUDE_DIR ${LIBUSB_INCLUDE_DIRS})
+endif()
# Add dependencies
if (APPLE)
@@ -553,7 +573,6 @@ else()
include(linux/PlatformPackaging.cmake)
endif()
-add_dependencies(${PROJECT_NAME} zlibstatic yescrypt)
include_directories(${CURL_INCLUDE_DIR} ${LibArchive_INCLUDE_DIR} ${LIBLZMA_INCLUDE_DIRS} ${LIBDRM_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIRS} ${ZSTD_INCLUDE_DIR} ${YESCRYPT_INCLUDE_DIR})
-add_dependencies(${PROJECT_NAME} zlibstatic yescrypt usb-1.0-static)
include_directories(${CURL_INCLUDE_DIR} ${LibArchive_INCLUDE_DIR} ${LIBLZMA_INCLUDE_DIRS} ${LIBDRM_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIRS} ${ZSTD_INCLUDE_DIR} ${YESCRYPT_INCLUDE_DIR} ${LIBUSB_INCLUDE_DIR})
# Link different Qt components based on build type