libiec61850: 1.6.1 -> 1.6.2

Fixes https://github.com/NixOS/nixpkgs/issues/545309

Fixes CVE-2026-49035
Fixes CVE-2026-50039
Fixes CVE-2026-50032
Fixes CVE-2026-50103

https://github.com/mz-automation/libiec61850/releases/tag/v1.6.2
(cherry picked from commit 71987224cc)
This commit is contained in:
Thomas Gerbet
2026-07-24 22:22:36 +02:00
committed by github-actions[bot]
parent f6691b463c
commit 978e7c7caa

View File

@@ -10,17 +10,22 @@
stdenv.mkDerivation (finalAttrs: {
pname = "libiec61850";
version = "1.6.1";
version = "1.6.2";
src = fetchFromGitHub {
owner = "mz-automation";
repo = "libiec61850";
rev = "v${finalAttrs.version}";
hash = "sha256-9UPXuZkAxr3SSjPN3VZRr6Hsz0GyDVJLUZEM+zZruik=";
hash = "sha256-KqgQxy/4vwFDkr9tVCVWDmbNuGivN6knf7rNHS+DTxc=";
};
separateDebugInfo = true;
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace src/CMakeLists.txt --replace-fail "-lrt" ""
substituteInPlace hal/CMakeLists.txt --replace-fail "-lrt" ""
'';
cmakeFlags = lib.optionals withTls [
"-DCONFIG_USE_EXTERNAL_MBEDTLS_DYNLIB=ON"
"-DCONFIG_EXTERNAL_MBEDTLS_DYNLIB_PATH=${mbedtls}/lib"