about summary refs log tree commit diff
path: root/pkgs/applications/blockchains
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2023-11-30 10:21:56 +0100
committerGitHub <noreply@github.com>2023-11-30 10:21:56 +0100
commitf5c27c6136db4d76c30e533c20517df6864c46ee (patch)
tree8dca17e0e7e2acc25749d7cf21194180a420947f /pkgs/applications/blockchains
parent3f84b6a6e47c21e2913315abd31cfb5351a986dc (diff)
parent517d5ab0b5646a36a971503b5c638aa7106d8ad5 (diff)
Merge pull request #270254 from lourkeur/chia-drop
chia: drop
Diffstat (limited to 'pkgs/applications/blockchains')
-rw-r--r--pkgs/applications/blockchains/chia-dev-tools/default.nix65
-rw-r--r--pkgs/applications/blockchains/chia-dev-tools/fix-paths.patch13
-rw-r--r--pkgs/applications/blockchains/chia-plotter/default.nix73
-rw-r--r--pkgs/applications/blockchains/chia-plotter/dont_fetch_dependencies.patch63
-rw-r--r--pkgs/applications/blockchains/chia/default.nix98
5 files changed, 0 insertions, 312 deletions
diff --git a/pkgs/applications/blockchains/chia-dev-tools/default.nix b/pkgs/applications/blockchains/chia-dev-tools/default.nix
deleted file mode 100644
index 287a711d23489..0000000000000
--- a/pkgs/applications/blockchains/chia-dev-tools/default.nix
+++ /dev/null
@@ -1,65 +0,0 @@
-{ lib
-, fetchFromGitHub
-, substituteAll
-, python3Packages
-, chia
-,
-}:
-python3Packages.buildPythonApplication rec {
-  pname = "chia-dev-tools";
-  version = "1.1.5";
-
-  src = fetchFromGitHub {
-    owner = "Chia-Network";
-    repo = pname;
-    rev = "v${version}";
-    hash = "sha256-qWWLQ+SkoRu5cLytwwrslqsKORy+4ebO8brULEFGaF0=";
-  };
-
-  patches = [
-    (substituteAll {
-      src = ./fix-paths.patch;
-      inherit chia;
-    })
-  ];
-
-  postPatch = ''
-    substituteInPlace setup.py \
-      --replace "==" ">="
-  '';
-
-  nativeBuildInputs = [
-    python3Packages.setuptools-scm
-  ];
-
-  # give a hint to setuptools-scm on package version
-  SETUPTOOLS_SCM_PRETEND_VERSION = "v${version}";
-
-  propagatedBuildInputs = with python3Packages; [
-    anyio
-    (toPythonModule chia)
-    pytest # required at runtime by the "test" command
-    pytest-asyncio
-    pytimeparse
-  ];
-
-  nativeCheckInputs = with python3Packages; [
-    pytestCheckHook
-  ];
-
-  preCheck = ''
-    export HOME=$(mktemp -d)
-  '';
-  postCheck = "unset HOME";
-
-  disabledTests = [
-    "test_spendbundles"
-  ];
-
-  meta = with lib; {
-    homepage = "https://www.chia.net/";
-    description = "Utility for developing in the Chia ecosystem: Chialisp functions, object inspection, RPC client and more";
-    license = with licenses; [ asl20 ];
-    maintainers = teams.chia.members;
-  };
-}
diff --git a/pkgs/applications/blockchains/chia-dev-tools/fix-paths.patch b/pkgs/applications/blockchains/chia-dev-tools/fix-paths.patch
deleted file mode 100644
index 9fb8fefe197af..0000000000000
--- a/pkgs/applications/blockchains/chia-dev-tools/fix-paths.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/cdv/cmds/sim_utils.py b/cdv/cmds/sim_utils.py
-index e59ba8f..20912ff 100644
---- a/cdv/cmds/sim_utils.py
-+++ b/cdv/cmds/sim_utils.py
-@@ -67,7 +67,7 @@ async def start_async(root_path: Path, group: Any, restart: bool) -> None:
- 

-     from chia.cmds.start_funcs import async_start

- 

--    sys.argv[0] = str(Path(sys.executable).parent / "chia")  # this gives the correct path to the chia executable

-+    sys.argv[0] = "@chia@/bin/chia"  # this gives the correct path to the chia executable

-     if root_path.exists():

-         config = load_config(root_path, "config.yaml")

-         await async_start(root_path, config, group, restart)

diff --git a/pkgs/applications/blockchains/chia-plotter/default.nix b/pkgs/applications/blockchains/chia-plotter/default.nix
deleted file mode 100644
index 5c0fa18739fb6..0000000000000
--- a/pkgs/applications/blockchains/chia-plotter/default.nix
+++ /dev/null
@@ -1,73 +0,0 @@
-{ lib
-, fetchFromGitHub
-, stdenv
-, libsodium
-, cmake
-, substituteAll
-, python3Packages
-}:
-
-stdenv.mkDerivation {
-  pname = "chia-plotter";
-  version = "1.1.8";
-
-  src = fetchFromGitHub {
-    owner = "madMAx43v3r";
-    repo = "chia-plotter";
-    rev = "9d7fd929919d1adde6404cb4718a665a81bcef6d";
-    sha256 = "sha256-TMAly+Qof2DHPRHqE1nZuHQaCeMo0jEd8MWy4OlXrcs=";
-    fetchSubmodules = true;
-  };
-
-  patches = [
-    # prevent CMake from trying to get libraries on the Internet
-    (substituteAll {
-      src = ./dont_fetch_dependencies.patch;
-      pybind11_src = python3Packages.pybind11.src;
-      relic_src = fetchFromGitHub {
-        owner = "Chia-Network";
-        repo = "relic";
-        rev = "1d98e5abf3ca5b14fd729bd5bcced88ea70ecfd7";
-        hash = "sha256-IfTD8DvTEXeLUoKe4Ejafb+PEJW5DV/VXRYuutwGQHU=";
-      };
-      sodium_src = fetchFromGitHub {
-        owner = "AmineKhaldi";
-        repo = "libsodium-cmake";
-        rev = "f73a3fe1afdc4e37ac5fe0ddd401bf521f6bba65"; # pinned by upstream
-        sha256 = "sha256-lGz7o6DQVAuEc7yTp8bYS2kwjzHwGaNjugDi1ruRJOA=";
-        fetchSubmodules = true;
-      };
-    })
-  ];
-
-  nativeBuildInputs = [ cmake ];
-
-  buildInputs = [ libsodium ];
-
-  # These flags come from the upstream build script:
-  # https://github.com/madMAx43v3r/chia-plotter/blob/974d6e5f1440f68c48492122ca33828a98864dfc/make_devel.sh#L7
-  CXXFLAGS = "-O3 -fmax-errors=1";
-  cmakeFlags = [
-    "-DARITH=easy"
-    "-DBUILD_BLS_PYTHON_BINDINGS=false"
-    "-DBUILD_BLS_TESTS=false"
-    "-DBUILD_BLS_BENCHMARKS=false"
-  ];
-
-  installPhase = ''
-    runHook preInstall
-
-    install -D -m 755 chia_plot $out/bin/chia_plot
-
-    runHook postInstall
-  '';
-
-  meta = with lib; {
-    homepage = "https://github.com/madMAx43v3r/chia-plotter";
-    description = "New implementation of a chia plotter which is designed as a processing pipeline";
-    license = licenses.gpl3Only;
-    platforms = platforms.linux;
-    maintainers = with maintainers; [ ilyakooo0 ];
-    mainProgram = "chia_plot";
-  };
-}
diff --git a/pkgs/applications/blockchains/chia-plotter/dont_fetch_dependencies.patch b/pkgs/applications/blockchains/chia-plotter/dont_fetch_dependencies.patch
deleted file mode 100644
index b7474af4c9634..0000000000000
--- a/pkgs/applications/blockchains/chia-plotter/dont_fetch_dependencies.patch
+++ /dev/null
@@ -1,63 +0,0 @@
-diff --git a/lib/bls-signatures/python-bindings/CMakeLists.txt b/lib/bls-signatures/python-bindings/CMakeLists.txt
-index 255e3bb..5f99c3a 100644
---- a/lib/bls-signatures/python-bindings/CMakeLists.txt
-+++ b/lib/bls-signatures/python-bindings/CMakeLists.txt
-@@ -6,8 +6,7 @@ include(FetchContent)
- 
- FetchContent_Declare(
-   pybind11
--  GIT_REPOSITORY https://github.com/pybind/pybind11.git
--  GIT_TAG        v2.6.2
-+  SOURCE_DIR @pybind11_src@
- )
- FetchContent_MakeAvailable(pybind11 relic)
-
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 6922167..23d8da6 100644
---- a/lib/bls-signatures/CMakeLists.txt
-+++ b/lib/bls-signatures/CMakeLists.txt
-@@ -31,29 +31,18 @@ set(CMAKE_MODULE_PATH
- include(FetchContent)
- 
- FetchContent_Declare(Sodium
--  GIT_REPOSITORY https://github.com/AmineKhaldi/libsodium-cmake.git
--  # Latest commit at the moment this was added here
--  # Anchored to libsodium v1.0.18
--  GIT_TAG f73a3fe1afdc4e37ac5fe0ddd401bf521f6bba65
-+  URL @sodium_src@
- )
- set(SODIUM_PCH "on" CACHE STRING "")
- set(SODIUM_DISABLE_TESTS "on" CACHE STRING "")
- set(SODIUM_CHIA_MINIMAL "on" CACHE STRING "")
- FetchContent_MakeAvailable(Sodium)
- 
--if (DEFINED ENV{RELIC_MAIN})
--  set(RELIC_GIT_TAG "origin/main")
--else ()
--  # This is currently anchored to upstream aecdcae7956f542fbee2392c1f0feb0a8ac41dc5
--  set(RELIC_GIT_TAG "1d98e5abf3ca5b14fd729bd5bcced88ea70ecfd7")
--endif ()
--
- message(STATUS "Relic will be built from: ${RELIC_GIT_TAG}")
- 
- FetchContent_Declare(
-   relic
--  GIT_REPOSITORY https://github.com/Chia-Network/relic.git
--  GIT_TAG ${RELIC_GIT_TAG}
-+  SOURCE_DIR @relic_src@
- )
- 
- # Relic related options
- 
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 970ec74..948441a 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -38,6 +38,7 @@ include_directories(
- 	${BLAKE3_PATH}
- 	${CMAKE_BINARY_DIR}/_deps/relic-src/include
- 	${CMAKE_BINARY_DIR}/_deps/relic-build/include
-+     @relic_src@/include
- )
- 
- IF (WIN32)
diff --git a/pkgs/applications/blockchains/chia/default.nix b/pkgs/applications/blockchains/chia/default.nix
deleted file mode 100644
index a07a0ea1e2814..0000000000000
--- a/pkgs/applications/blockchains/chia/default.nix
+++ /dev/null
@@ -1,98 +0,0 @@
-{ lib
-, cacert
-, fetchFromGitHub
-, python3Packages
-}:
-
-let chia = python3Packages.buildPythonApplication rec {
-  pname = "chia";
-  version = "1.7.0";
-
-  src = fetchFromGitHub {
-    owner = "Chia-Network";
-    repo = "chia-blockchain";
-    rev = version;
-    fetchSubmodules = true;
-    hash = "sha256-hsh2HHpm103JfUTPwk+8zIkhVrglIP8xMovFIibn8+g=";
-  };
-
-  postPatch = ''
-    substituteInPlace setup.py \
-      --replace "==" ">="
-
-    cp ${cacert}/etc/ssl/certs/ca-bundle.crt mozilla-ca/cacert.pem
-  '';
-
-  nativeBuildInputs = [
-    python3Packages.setuptools-scm
-  ];
-
-  # give a hint to setuptools-scm on package version
-  SETUPTOOLS_SCM_PRETEND_VERSION = "v${version}";
-
-  propagatedBuildInputs = with python3Packages; [
-    aiofiles
-    aiohttp
-    aiosqlite
-    bitstring
-    blspy
-    chiapos
-    chiavdf
-    chiabip158
-    chia-rs
-    click
-    clvm
-    clvm-rs
-    clvm-tools
-    clvm-tools-rs
-    colorama
-    colorlog
-    concurrent-log-handler
-    cryptography
-    dnslib
-    dnspython
-    fasteners
-    filelock
-    keyrings-cryptfile
-    psutil
-    pyyaml
-    setproctitle
-    setuptools # needs pkg_resources at runtime
-    sortedcontainers
-    watchdog
-    websockets
-    zstd
-  ];
-
-  nativeCheckInputs = with python3Packages; [
-    pytestCheckHook
-  ];
-
-  # Testsuite is expensive and non-deterministic, so it is available in
-  # passthru.tests instead.
-  doCheck = false;
-
-  disabledTests = [
-    "test_spend_through_n"
-    "test_spend_zero_coin"
-    "test_default_cached_master_passphrase"
-    "test_using_legacy_keyring"
-  ];
-
-  preCheck = ''
-    export HOME=`mktemp -d`
-  '';
-
-  passthru.tests = {
-    chiaWithTests = chia.overrideAttrs (_: { doCheck = true; });
-  };
-
-  meta = with lib; {
-    homepage = "https://www.chia.net/";
-    description = "Chia is a modern cryptocurrency built from scratch, designed to be efficient, decentralized, and secure.";
-    license = with licenses; [ asl20 ];
-    maintainers = teams.chia.members;
-    platforms = platforms.all;
-  };
-};
-in chia