-
Notifications
You must be signed in to change notification settings - Fork 74
/
flake.nix
57 lines (51 loc) · 1.88 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
description = "Flexisip development environments";
inputs = {
nixpkgs-with-nghttp2-asio.url = github:NixOS/nixpkgs/a565059a348422af5af9026b5174dc5c0dcefdae;
};
outputs = { self, nixpkgs, nixpkgs-with-nghttp2-asio }: {
devShells.x86_64-linux.default = import ./shell.nix {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
# https://github.com/NixOS/nixpkgs/blob/7adc9c14ec74b27358a8df9b973087e351425a79/pkgs/development/libraries/nghttp2/default.nix#L8
nghttp2 = nixpkgs-with-nghttp2-asio.legacyPackages.x86_64-linux.nghttp2.override { enableAsioLib = true; };
};
devShells.x86_64-linux.embedded-like = with nixpkgs.legacyPackages.x86_64-linux;
/* CC=gcc CXX=g++ BUILD_DIR_NAME="build" cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -S . -B ./$BUILD_DIR_NAME -G "Ninja" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="$PWD/$BUILD_DIR_NAME/install"
-DENABLE_PRESENCE=ON
-DENABLE_REDIS=OFF
-DENABLE_SNMP=OFF
-DENABLE_SOCI=ON
-DENABLE_TRANSCODER=ON
-DENABLE_MDNS=OFF
-DENABLE_EXTERNAL_AUTH_PLUGIN=OFF
-DENABLE_JWE_AUTH_PLUGIN=OFF
-DINTERNAL_LIBSRTP2=ON
-DINTERNAL_JSONCPP=OFF
-DENABLE_CONFERENCE=OFF
-DENABLE_SOCI_POSTGRESQL_BACKEND=OFF
-DENABLE_B2BUA=OFF
-DENABLE_UNIT_TESTS=OFF
-DENABLE_STRICT_LINPHONESDK=OFF
*/
mkShell
{
buildInputs =
[
cmake
git
openssl
python3
perl
xercesc
nghttp2
sqlite
speex
libmysqlclient
msgpack
ninja # Optional. You can use "Unix makefiles" instead
];
};
packages.x86_64-linux.hello = nixpkgs.legacyPackages.x86_64-linux.hello;
defaultPackage.x86_64-linux = self.packages.x86_64-linux.hello;
};
}