7bd65d54f7
While looking at the sphinx package I noticed it was heavily undermaintained, which is when we noticed nand0p has been inactive for roughly 18 months. It is therefore prudent to assume they will not be maintaining their packages, modules and tests. - Their last contribution to nixpkgs was in 2019/12 - On 2021/05/08 I wrote them an email to the address listed in the maintainer-list, which they didn't reply to.
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, cmake, gbenchmark, gtest }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ethash";
|
|
version = "0.6.0";
|
|
|
|
src =
|
|
fetchFromGitHub {
|
|
owner = "chfast";
|
|
repo = "ethash";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-N30v9OZwTmDbltPPmeSa0uOGJhos1VzyS5zY9vVCWfA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
checkInputs = [
|
|
gbenchmark
|
|
gtest
|
|
];
|
|
|
|
#preConfigure = ''
|
|
# sed -i 's/GTest::main//' test/unittests/CMakeLists.txt
|
|
# cat test/unittests/CMakeLists.txt
|
|
# ln -sfv ${gtest.src}/googletest gtest
|
|
#'';
|
|
|
|
# NOTE: disabling tests due to gtest issue
|
|
cmakeFlags = [
|
|
"-DHUNTER_ENABLED=OFF"
|
|
"-DETHASH_BUILD_TESTS=OFF"
|
|
#"-Dbenchmark_DIR=${gbenchmark}/lib/cmake/benchmark"
|
|
#"-DGTest_DIR=${gtest.dev}/lib/cmake/GTest"
|
|
#"-DGTest_DIR=${gtest.src}/googletest"
|
|
#"-DCMAKE_PREFIX_PATH=${gtest.dev}/lib/cmake"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "PoW algorithm for Ethereum 1.0 based on Dagger-Hashimoto";
|
|
homepage = "https://github.com/ethereum/ethash";
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ ];
|
|
license = licenses.asl20;
|
|
};
|
|
}
|