Unverified Commit 5bfe826b authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #228929 from misuzu/ton-update

ton: 2023.01 -> 2023.04
parents 3efcf6cb 97ece073
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
, fetchFromGitHub
, cmake
, git
, pkg-config
, gperf
, libmicrohttpd
, openssl
@@ -12,25 +13,22 @@

stdenv.mkDerivation rec {
  pname = "ton";
  version = "2023.01";
  version = "2023.04";

  src = fetchFromGitHub {
    owner = "ton-blockchain";
    repo = "ton";
    rev = "v${version}";
    sha256 = "sha256-wb96vh0YcTBFE8EzBItdTf88cvRMLW2XxcGJpNetOi8=";
    sha256 = "sha256-3HQF0wKk0iRV5fKzuCTv7X7MC+snMDrodgqScCZQVY4=";
    fetchSubmodules = true;
  };

  postPatch = ''
    # without this fails on aarch64-darwin with clang-11: error: the clang compiler does not support '-mcpu=apple-m1'
    substituteInPlace CMakeLists.txt \
      --replace 'set(TON_ARCH "apple-m1")' ""
  '';
  outputs = [ "out" "dev" ];

  nativeBuildInputs = [
    cmake
    git
    pkg-config
  ];

  buildInputs = [
@@ -44,6 +42,7 @@ stdenv.mkDerivation rec {
  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 ];