2023-02-03 17:56:56 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, git
|
2023-04-29 13:36:20 +00:00
|
|
|
, pkg-config
|
2023-02-03 17:56:56 +00:00
|
|
|
, gperf
|
|
|
|
, libmicrohttpd
|
|
|
|
, openssl
|
|
|
|
, readline
|
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ton";
|
2023-06-10 11:11:44 +00:00
|
|
|
version = "2023.06";
|
2023-02-03 17:56:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ton-blockchain";
|
|
|
|
repo = "ton";
|
|
|
|
rev = "v${version}";
|
2023-06-10 11:11:44 +00:00
|
|
|
sha256 = "sha256-mDYuOokCGS1sDP6fHDXhGboDjn4JeyA5ea4/6RRt9x4=";
|
2023-02-03 17:56:56 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2023-04-29 13:36:20 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
2023-02-03 17:56:56 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
git
|
2023-04-29 13:36:20 +00:00
|
|
|
pkg-config
|
2023-02-03 17:56:56 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gperf
|
|
|
|
libmicrohttpd
|
|
|
|
openssl
|
|
|
|
readline
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A fully decentralized layer-1 blockchain designed by Telegram";
|
|
|
|
homepage = "https://ton.org/";
|
2023-04-29 13:36:20 +00:00
|
|
|
changelog = "https://github.com/ton-blockchain/ton/blob/v${version}/Changelog.md";
|
2023-02-03 17:56:56 +00:00
|
|
|
license = licenses.lgpl2Only;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ misuzu ];
|
|
|
|
};
|
|
|
|
}
|