-
Notifications
You must be signed in to change notification settings - Fork 74
/
flake.nix
51 lines (46 loc) · 1.48 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
{
description = "A very basic flake";
outputs = { self, nixpkgs }: {
devShells.x86_64-linux.default = import ./shell.nix {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
};
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;
};
}