diff options
author | Lorenz Brun <lorenz@brun.one> | 2022-01-28 18:57:13 +0100 |
---|---|---|
committer | Lorenz Brun <lorenz@brun.one> | 2022-04-26 21:43:56 +0200 |
commit | bafc9b9ff83d7ee15181400d55d0008930f1d000 (patch) | |
tree | b8e0bb755fff8f690fde3f1a4ef27c303b178ebe /pkgs/development/libraries/soci | |
parent | a5282b8bfc8ba84ce2f7ec6da470d16f579a1419 (diff) |
linphone: 4.2.5 -> 4.4.1
Co-authored-by: Thibault Lemaire <thibault.lemaire@protonmail.com> Co-authored-by: Austin Butler <abutler@riotgames.com>
Diffstat (limited to 'pkgs/development/libraries/soci')
-rw-r--r-- | pkgs/development/libraries/soci/bc-soci.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/development/libraries/soci/bc-soci.nix b/pkgs/development/libraries/soci/bc-soci.nix new file mode 100644 index 0000000000000..d728d61a8f57e --- /dev/null +++ b/pkgs/development/libraries/soci/bc-soci.nix @@ -0,0 +1,53 @@ +{ cmake +, fetchFromGitLab +, fetchpatch +, sqlite +, boost +, lib +, stdenv +}: + +stdenv.mkDerivation rec { + pname = "bc-soci"; + version = "linphone-4.4.1"; + + src = fetchFromGitLab { + domain = "gitlab.linphone.org"; + group = "BC"; + owner = "public/external"; + repo = "soci"; + rev = "bc8ce0c5628dd48eca6ef5ce0a0a2f52547d88b6"; + sha256 = "sha256-qo26aYp/G2C6UkGA1qkHQwTKD5go7TQ9JWxb9xtbe6M="; + }; + + patches = [ + (fetchpatch { + name = "fix-backend-search-path.patch"; + url = "https://github.com/SOCI/soci/commit/56c93afc467bdba8ffbe68739eea76059ea62f7a.patch"; + sha256 = "sha256-nC/39pn3Cv5e65GgIfF3l64/AbCsfZHPUPIWETZFZAY="; + }) + ]; + + cmakeFlags = [ + # Do not build static libraries + "-DSOCI_SHARED=YES" + "-DSOCI_STATIC=OFF" + + "-DSOCI_TESTS=NO" + "-DWITH_SQLITE3=YES" + ]; + + nativeBuildInputs = [ cmake ]; + buildInputs = [ + sqlite + boost + ]; + + meta = with lib; { + description = "Database access library for C++. Belledonne Communications' fork for Linphone."; + homepage = "https://gitlab.linphone.org/BC/public/external/soci"; + license = licenses.boost; + platforms = platforms.all; + maintainers = with maintainers; [ thibaultlemaire ]; + }; +} |