mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-15 04:32:21 +00:00
* Compress block candidates in validator-session * Compress blocks in full-node (disabled for now) * test pipeline with lz4 * tonlib compilation required lz4; try win compile; * install lz4 on mac. * wip, test builds * remove FindLZ4.cmake * fix typo * fix wasm lz4 path * increase groovy timeout to 120 sec * add lz4 for android and emscripten builds * add lz4 for android and emscripten builds * fix win build include path for lz4 * add precompiled lz4 for android * cleanup * adjust android include dir for lz4 * fix path for android arm of lz4 * cleanup * minor fix --------- Co-authored-by: SpyCheese <mikle98@yandex.ru>
44 lines
987 B
Nix
44 lines
987 B
Nix
# export NIX_PATH=nixpkgs=https://github.com/nixOS/nixpkgs/archive/23.05.tar.gz
|
|
{
|
|
pkgs ? import <nixpkgs> { system = builtins.currentSystem; }
|
|
, lib ? pkgs.lib
|
|
, stdenv ? pkgs.stdenv
|
|
}:
|
|
let
|
|
microhttpdmy = (import ./microhttpd.nix) {};
|
|
in
|
|
with import microhttpdmy;
|
|
pkgs.llvmPackages_16.stdenv.mkDerivation {
|
|
pname = "ton";
|
|
version = "dev-lib";
|
|
|
|
src = ./.;
|
|
|
|
nativeBuildInputs = with pkgs;
|
|
[
|
|
cmake ninja git pkg-config
|
|
];
|
|
|
|
buildInputs = with pkgs;
|
|
[
|
|
pkgsStatic.openssl microhttpdmy pkgsStatic.zlib pkgsStatic.libsodium.dev pkgsStatic.secp256k1 pkgsStatic.lz4
|
|
];
|
|
|
|
dontAddStaticConfigureFlags = false;
|
|
|
|
cmakeFlags = [
|
|
"-DTON_USE_ABSEIL=OFF"
|
|
"-DNIX=ON"
|
|
"-DMHD_FOUND=1"
|
|
"-DMHD_INCLUDE_DIR=${microhttpdmy}/usr/local/include"
|
|
"-DMHD_LIBRARY=${microhttpdmy}/usr/local/lib/libmicrohttpd.a"
|
|
];
|
|
|
|
LDFLAGS = [
|
|
"-static-libgcc" "-static-libstdc++" "-fPIC" "-fcommon"
|
|
];
|
|
|
|
ninjaFlags = [
|
|
"tonlibjson" "emulator"
|
|
];
|
|
}
|