Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

84 lines
1.6 KiB
Nix

{
lib,
bc-soci,
belcard,
belle-sip,
doxygen,
jsoncpp,
libxml2,
lime,
mediastreamer2,
python3,
sqlite,
xercesc,
zxing-cpp,
mkLinphoneDerivation,
}:
mkLinphoneDerivation {
pname = "liblinphone";
cmakeFlags = [
"-DENABLE_UNIT_TESTS=NO" # Do not build test executables
"-DENABLE_STRICT=NO" # Do not build with -Werror
# normally set by a cmake module, but
# we need to disable it to prevent downstream link errors
"-DJsonCPP_TARGET=jsoncpp"
];
buildInputs = [
# Made by BC
belcard
belle-sip
lime
mediastreamer2
# Vendored by BC
bc-soci
libxml2
sqlite
xercesc
zxing-cpp
];
propagatedBuildInputs = [
jsoncpp
];
nativeBuildInputs = [
doxygen
(python3.withPackages (ps: [
ps.pystache
ps.six
ps.pyturbojpeg
]))
];
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail JsonCPP jsoncpp
'';
preConfigure = ''
rm cmake/FindJsonCPP.cmake
'';
strictDeps = true;
# Some grammar files needed to be copied too from some dependencies. I suppose
# if one define a dependency in such a way that its share directory is found,
# then this copying would be unnecessary. Instead of actually copying these
# files, create a symlink.
postInstall = ''
mkdir -p $out/share/belr/grammars
ln -s ${belcard}/share/belr/grammars/* $out/share/belr/grammars/
'';
meta = {
description = "Library for SIP calls and instant messaging";
license = lib.licenses.agpl3Plus;
platforms = lib.platforms.linux;
};
}