libiec61850: Add mbedtls support (#403075)

authored by Peder Bergebakken Sundt and committed by GitHub d55b8ed6 2cb26015

+13 -1
+13 -1
pkgs/by-name/li/libiec61850/package.nix
··· 1 { 2 cmake, 3 lib, 4 stdenv, 5 fetchFromGitHub, 6 gitUpdater, 7 }: 8 9 stdenv.mkDerivation (finalAttrs: { ··· 19 20 separateDebugInfo = true; 21 22 nativeBuildInputs = [ cmake ]; 23 24 passthru.updateScript = gitUpdater { rev-prefix = "v"; }; 25 ··· 27 description = "Open-source library for the IEC 61850 protocols"; 28 homepage = "https://libiec61850.com/"; 29 license = lib.licenses.gpl3Only; 30 - maintainers = with lib.maintainers; [ stv0g ]; 31 platforms = lib.platforms.unix; 32 }; 33 })
··· 1 { 2 cmake, 3 + mbedtls, 4 lib, 5 stdenv, 6 fetchFromGitHub, 7 gitUpdater, 8 + withTls ? !stdenv.hostPlatform.isDarwin, 9 }: 10 11 stdenv.mkDerivation (finalAttrs: { ··· 21 22 separateDebugInfo = true; 23 24 + cmakeFlags = lib.optionals withTls [ 25 + "-DCONFIG_USE_EXTERNAL_MBEDTLS_DYNLIB=ON" 26 + "-DCONFIG_EXTERNAL_MBEDTLS_DYNLIB_PATH=${mbedtls}/lib" 27 + "-DCONFIG_EXTERNAL_MBEDTLS_INCLUDE_PATH=${mbedtls}/include" 28 + ]; 29 + 30 nativeBuildInputs = [ cmake ]; 31 + buildInputs = lib.optionals withTls [ mbedtls ]; 32 33 passthru.updateScript = gitUpdater { rev-prefix = "v"; }; 34 ··· 36 description = "Open-source library for the IEC 61850 protocols"; 37 homepage = "https://libiec61850.com/"; 38 license = lib.licenses.gpl3Only; 39 + maintainers = with lib.maintainers; [ 40 + stv0g 41 + pjungkamp 42 + ]; 43 platforms = lib.platforms.unix; 44 }; 45 })