2019-11-10 14:46:15 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "randomX";
|
2020-07-10 22:22:42 +00:00
|
|
|
version = "1.1.8";
|
2019-11-10 14:46:15 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tevador";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-07-10 22:22:42 +00:00
|
|
|
sha256 = "13h2cw8drq7xn3v8fbpxrlsl8zq3fs8gd2pc1pv28ahr9qqjz1gc";
|
2019-11-10 14:46:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Proof of work algorithm based on random code execution";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/tevador/RandomX";
|
2019-11-10 14:46:15 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|