Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / soci / bc-soci.nix
blobd728d61a8f57e47d796b7a9b3eb9964a805433fd
1 { cmake
2 , fetchFromGitLab
3 , fetchpatch
4 , sqlite
5 , boost
6 , lib
7 , stdenv
8 }:
10 stdenv.mkDerivation rec {
11   pname = "bc-soci";
12   version = "linphone-4.4.1";
14   src = fetchFromGitLab {
15     domain = "gitlab.linphone.org";
16     group = "BC";
17     owner = "public/external";
18     repo = "soci";
19     rev = "bc8ce0c5628dd48eca6ef5ce0a0a2f52547d88b6";
20     sha256 = "sha256-qo26aYp/G2C6UkGA1qkHQwTKD5go7TQ9JWxb9xtbe6M=";
21   };
23   patches = [
24     (fetchpatch {
25       name = "fix-backend-search-path.patch";
26       url = "https://github.com/SOCI/soci/commit/56c93afc467bdba8ffbe68739eea76059ea62f7a.patch";
27       sha256 = "sha256-nC/39pn3Cv5e65GgIfF3l64/AbCsfZHPUPIWETZFZAY=";
28     })
29   ];
31   cmakeFlags = [
32     # Do not build static libraries
33     "-DSOCI_SHARED=YES"
34     "-DSOCI_STATIC=OFF"
36     "-DSOCI_TESTS=NO"
37     "-DWITH_SQLITE3=YES"
38   ];
40   nativeBuildInputs = [ cmake ];
41   buildInputs = [
42     sqlite
43     boost
44   ];
46   meta = with lib; {
47     description = "Database access library for C++. Belledonne Communications' fork for Linphone.";
48     homepage = "https://gitlab.linphone.org/BC/public/external/soci";
49     license = licenses.boost;
50     platforms = platforms.all;
51     maintainers = with maintainers; [ thibaultlemaire ];
52   };