Commit 4af6579f authored by Markus Kowalewski's avatar Markus Kowalewski Committed by github-actions[bot]
Browse files

kamailio: make "modules" customiziable by overrideAttrs

(cherry picked from commit 9f3a21f0)
parent ab29cdf1
Loading
Loading
Loading
Loading
+31 −29
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@
, coreutils
, gdb
, gnused
, openssl
}:

stdenv.mkDerivation (finalAttrs: {
@@ -33,6 +34,7 @@ stdenv.mkDerivation (finalAttrs: {
    libxml2
    mariadb-connector-c
    pcre
    openssl
  ];

  nativeBuildInputs = [
@@ -42,7 +44,6 @@ stdenv.mkDerivation (finalAttrs: {
    flex
  ];

  configurePhase = let
  modules = [
    "db_mysql"
    "dialplan"
@@ -69,10 +70,11 @@ stdenv.mkDerivation (finalAttrs: {
    "xcap_client"
    "xcap_server"
  ];
   in ''

  configurePhase = ''
    runHook preConfigure

    make PREFIX="$out" include_modules="${lib.concatStringsSep " " modules}" cfg
    make PREFIX="$out" include_modules="${lib.concatStringsSep " " finalAttrs.modules}" cfg

    runHook postConfigure
  '';