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