2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake }:
|
2019-11-10 14:46:15 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "randomX";
|
2021-10-17 17:02:34 +01:00
|
|
|
version = "1.1.9";
|
2019-11-10 14:46:15 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tevador";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-10-17 17:02:34 +01:00
|
|
|
sha256 = "188fh4l8wda1y9vxa9asbk8nw35gyapw7gyn4w2p2qspdjhi5mnq";
|
2019-11-10 14:46:15 +00:00
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2019-11-10 14:46:15 +00:00
|
|
|
description = "Proof of work algorithm based on random code execution";
|
2020-04-01 02:11:51 +01: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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|