94427deb9d
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
50 lines
909 B
Nix
50 lines
909 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, git
|
|
, pkg-config
|
|
, gperf
|
|
, libmicrohttpd
|
|
, openssl
|
|
, readline
|
|
, zlib
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ton";
|
|
version = "2023.05";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ton-blockchain";
|
|
repo = "ton";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-EuFKoqOzKoaBCiVAsb8K053kAL4bw1WqmmybVJX2Fmo=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
git
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
gperf
|
|
libmicrohttpd
|
|
openssl
|
|
readline
|
|
zlib
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A fully decentralized layer-1 blockchain designed by Telegram";
|
|
homepage = "https://ton.org/";
|
|
changelog = "https://github.com/ton-blockchain/ton/blob/v${version}/Changelog.md";
|
|
license = licenses.lgpl2Only;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ misuzu ];
|
|
};
|
|
}
|