From ce244d5f3b674e8ad9dd88b56d466eeb18c86dd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 25 Oct 2025 14:59:29 -0700 Subject: [PATCH 1/2] edgetx: fix build with CMake 4 --- pkgs/by-name/ed/edgetx/package.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ed/edgetx/package.nix b/pkgs/by-name/ed/edgetx/package.nix index 4cb6662c086c..def2ad783618 100644 --- a/pkgs/by-name/ed/edgetx/package.nix +++ b/pkgs/by-name/ed/edgetx/package.nix @@ -15,6 +15,7 @@ miniz, yaml-cpp, udevCheckHook, + applyPatches, # List of targets to build simulators for targetsToBuild ? import ./targets.nix, }: @@ -36,6 +37,12 @@ let libclang ] ); + + # paches are needed to fix build with CMake 4 + yaml-cppSrc = applyPatches { + inherit (yaml-cpp) src; + patches = yaml-cpp.patches or [ ]; + }; in stdenv.mkDerivation (finalAttrs: { @@ -93,7 +100,7 @@ stdenv.mkDerivation (finalAttrs: { # Unvendoring these libraries is infeasible. At least lets reuse the same sources. (lib.cmakeFeature "FETCHCONTENT_SOURCE_DIR_GOOGLETEST" "${gtest.src}") (lib.cmakeFeature "FETCHCONTENT_SOURCE_DIR_MINIZ" "${miniz.src}") - (lib.cmakeFeature "FETCHCONTENT_SOURCE_DIR_YAML-CPP" "${yaml-cpp.src}") + (lib.cmakeFeature "FETCHCONTENT_SOURCE_DIR_YAML-CPP" "${yaml-cppSrc}") # Custom library https://github.com/edgetx/maxLibQt. (lib.cmakeFeature "FETCHCONTENT_SOURCE_DIR_MAXLIBQT" "${maxlibqt}") (lib.cmakeFeature "DFU_UTIL_ROOT_DIR" "${lib.getBin dfu-util}/bin") From b0a9ff0c0bb217a1c4c5efad3cfe302094f7e2fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sat, 25 Oct 2025 14:51:49 -0700 Subject: [PATCH 2/2] edgetx: 2.11.2 -> 2.11.3 Diff: https://github.com/EdgeTX/edgetx/compare/v2.11.2...v2.11.3 --- pkgs/by-name/ed/edgetx/package.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ed/edgetx/package.nix b/pkgs/by-name/ed/edgetx/package.nix index def2ad783618..ff523a052d32 100644 --- a/pkgs/by-name/ed/edgetx/package.nix +++ b/pkgs/by-name/ed/edgetx/package.nix @@ -47,14 +47,14 @@ in stdenv.mkDerivation (finalAttrs: { pname = "edgetx"; - version = "2.11.2"; + version = "2.11.3"; src = fetchFromGitHub { owner = "EdgeTX"; repo = "edgetx"; tag = "v${finalAttrs.version}"; fetchSubmodules = true; - hash = "sha256-F3T1lX0FSSUIQxSlqLQHj7JrfF+20Ndv63zDA0sRzFQ="; + hash = "sha256-vlJsfebTWhdh6HDpUEA1QJJSVGMlcL49XFwIx4A9zHs="; }; nativeBuildInputs = [ @@ -175,6 +175,7 @@ stdenv.mkDerivation (finalAttrs: { ''; mainProgram = "companion" + lib.concatStrings (lib.take 2 (lib.splitVersion finalAttrs.version)); homepage = "https://edgetx.org/"; + changelog = "https://github.com/EdgeTX/edgetx/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.gpl2Only; platforms = [ "i686-linux"