22 stdenv.mkDerivation (finalAttrs: {
27 url = "https://www.kamailio.org/pub/kamailio/${finalAttrs.version}/src/kamailio-${finalAttrs.version}_src.tar.gz";
28 hash = "sha256-AP9zgGFuoM+gsVmoepfedFTwDOM3RpsRpO6gS/4AMfM=";
78 make PREFIX="$out" include_modules="${lib.concatStringsSep " " finalAttrs.modules}" cfg
84 makeFlagsArray+=(PREFIX="$out" "MYSQLCFG=${lib.getDev mariadb-connector-c}/bin/mariadb_config")
88 echo 'MD5="${coreutils}/bin/md5sum"' >> $out/etc/kamailio/kamctlrc
89 echo 'AWK="${gawk}/bin/awk"' >> $out/etc/kamailio/kamctlrc
90 echo 'GDB="${gdb}/bin/gdb"' >> $out/etc/kamailio/kamctlrc
91 echo 'GREP="${gnugrep}/bin/grep "' >> $out/etc/kamailio/kamctlrc
92 echo 'EGREP="${gnugrep}/bin/grep -E"' >> $out/etc/kamailio/kamctlrc
93 echo 'SED="${gnused}/bin/sed"' >> $out/etc/kamailio/kamctlrc
94 echo 'LAST_LINE="${coreutils}/bin/tail -n 1"' >> $out/etc/kamailio/kamctlrc
95 echo 'EXPR="${gnugrep}/bin/expr"' >> $out/etc/kamailio/kamctlrc
98 enableParallelBuilding = true;
101 kamailio-bin = callPackage ./test-kamailio-bin { };
105 description = "Fast and flexible SIP server, proxy, SBC, and load balancer";
106 homepage = "https://www.kamailio.org/";
107 license = lib.licenses.gpl2Only;
108 maintainers = with lib.maintainers; [ mawis ];
109 platforms = lib.platforms.linux;