tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
chia-plotter: init at unstable-2021-07-12
iko
4 years ago
a6581d35
468cf873
+117
3 changed files
expand all
collapse all
unified
split
pkgs
applications
blockchains
chia-plotter
default.nix
dont_fetch_dependencies.patch
top-level
all-packages.nix
+65
pkgs/applications/blockchains/chia-plotter/default.nix
···
1
1
+
{ lib
2
2
+
, fetchFromGitHub
3
3
+
, stdenv
4
4
+
, libsodium
5
5
+
, cmake
6
6
+
, substituteAll
7
7
+
, pythonPackages
8
8
+
}:
9
9
+
10
10
+
stdenv.mkDerivation {
11
11
+
pname = "chia-plotter";
12
12
+
version = "unstable-2021-07-12";
13
13
+
14
14
+
src = fetchFromGitHub {
15
15
+
owner = "madMAx43v3r";
16
16
+
repo = "chia-plotter";
17
17
+
rev = "974d6e5f1440f68c48492122ca33828a98864dfc";
18
18
+
sha256 = "0dliswvqmi3wq9w8jp0sb0z74n5k37608sig6r60z206g2bwhjja";
19
19
+
fetchSubmodules = true;
20
20
+
};
21
21
+
22
22
+
patches = [
23
23
+
# prevent CMake from trying to get libraries on the Internet
24
24
+
(substituteAll {
25
25
+
src = ./dont_fetch_dependencies.patch;
26
26
+
pybind11_src = pythonPackages.pybind11.src;
27
27
+
relic_src = fetchFromGitHub {
28
28
+
owner = "relic-toolkit";
29
29
+
repo = "relic";
30
30
+
rev = "1885ae3b681c423c72b65ce1fe70910142cf941c";
31
31
+
hash = "sha256-tsSZTcssl8t7Nqdex4BesgQ+ACPgTdtHnJFvS9josN0=";
32
32
+
};
33
33
+
})
34
34
+
];
35
35
+
36
36
+
nativeBuildInputs = [ cmake ];
37
37
+
38
38
+
buildInputs = [ libsodium ];
39
39
+
40
40
+
# These flags come from the upstream build script:
41
41
+
# https://github.com/madMAx43v3r/chia-plotter/blob/974d6e5f1440f68c48492122ca33828a98864dfc/make_devel.sh#L7
42
42
+
CXXFLAGS = "-O3 -fmax-errors=1";
43
43
+
cmakeFlags = [
44
44
+
"-DARITH=easy"
45
45
+
"-DBUILD_BLS_PYTHON_BINDINGS=false"
46
46
+
"-DBUILD_BLS_TESTS=false"
47
47
+
"-DBUILD_BLS_BENCHMARKS=false"
48
48
+
];
49
49
+
50
50
+
installPhase = ''
51
51
+
runHook preInstall
52
52
+
53
53
+
install -D -m 755 chia_plot $out/bin/chia_plot
54
54
+
55
55
+
runHook postInstall
56
56
+
'';
57
57
+
58
58
+
meta = with lib; {
59
59
+
homepage = "https://github.com/madMAx43v3r/chia-plotter";
60
60
+
description = "New implementation of a chia plotter which is designed as a processing pipeline";
61
61
+
license = licenses.gpl3Only;
62
62
+
platforms = platforms.linux;
63
63
+
maintainers = with maintainers; [ ilyakooo0 ];
64
64
+
};
65
65
+
}
+50
pkgs/applications/blockchains/chia-plotter/dont_fetch_dependencies.patch
···
1
1
+
diff --git a/lib/bls-signatures/python-bindings/CMakeLists.txt b/lib/bls-signatures/python-bindings/CMakeLists.txt
2
2
+
index 255e3bb..5f99c3a 100644
3
3
+
--- a/lib/bls-signatures/python-bindings/CMakeLists.txt
4
4
+
+++ b/lib/bls-signatures/python-bindings/CMakeLists.txt
5
5
+
@@ -6,8 +6,7 @@ include(FetchContent)
6
6
+
7
7
+
FetchContent_Declare(
8
8
+
pybind11
9
9
+
- GIT_REPOSITORY https://github.com/pybind/pybind11.git
10
10
+
- GIT_TAG v2.6.2
11
11
+
+ SOURCE_DIR @pybind11_src@
12
12
+
)
13
13
+
FetchContent_MakeAvailable(pybind11 relic)
14
14
+
15
15
+
diff --git a/lib/bls-signatures/src/CMakeLists.txt b/lib/bls-signatures/src/CMakeLists.txt
16
16
+
index b762b5d..e06073b 100644
17
17
+
--- a/lib/bls-signatures/src/CMakeLists.txt
18
18
+
+++ b/lib/bls-signatures/src/CMakeLists.txt
19
19
+
@@ -4,18 +4,11 @@ set (CMAKE_CXX_STANDARD 17)
20
20
+
# CMake 3.14+
21
21
+
include(FetchContent)
22
22
+
23
23
+
-if (DEFINED ENV{RELIC_MAIN})
24
24
+
- set(RELIC_GIT_TAG "origin/main")
25
25
+
-else ()
26
26
+
- set(RELIC_GIT_TAG "1885ae3b681c423c72b65ce1fe70910142cf941c")
27
27
+
-endif ()
28
28
+
-
29
29
+
message(STATUS "Relic will be built from: ${RELIC_GIT_TAG}")
30
30
+
31
31
+
FetchContent_Declare(
32
32
+
relic
33
33
+
- GIT_REPOSITORY https://github.com/relic-toolkit/relic.git
34
34
+
- GIT_TAG ${RELIC_GIT_TAG}
35
35
+
+ SOURCE_DIR @relic_src@
36
36
+
)
37
37
+
FetchContent_MakeAvailable(relic)
38
38
+
39
39
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
40
40
+
index 970ec74..948441a 100644
41
41
+
--- a/CMakeLists.txt
42
42
+
+++ b/CMakeLists.txt
43
43
+
@@ -38,6 +38,7 @@ include_directories(
44
44
+
${BLAKE3_PATH}
45
45
+
${CMAKE_BINARY_DIR}/_deps/relic-src/include
46
46
+
${CMAKE_BINARY_DIR}/_deps/relic-build/include
47
47
+
+ @relic_src@/include
48
48
+
)
49
49
+
50
50
+
IF (WIN32)
+2
pkgs/top-level/all-packages.nix
···
28636
28636
28637
28637
chia = callPackage ../applications/blockchains/chia { };
28638
28638
28639
28639
+
chia-plotter = callPackage ../applications/blockchains/chia-plotter { };
28640
28640
+
28639
28641
clightning = callPackage ../applications/blockchains/clightning { };
28640
28642
28641
28643
bitcoin-abc = libsForQt5.callPackage ../applications/blockchains/bitcoin-abc {