nixpkgs/pkgs/development/libraries/randomx/default.nix

25 lines
582 B
Nix
Raw Normal View History

2019-11-10 14:46:15 +00:00
{ stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "randomX";
2019-12-09 17:31:37 +00:00
version = "1.1.7";
2019-11-10 14:46:15 +00:00
nativeBuildInputs = [ cmake ];
src = fetchFromGitHub {
owner = "tevador";
repo = pname;
rev = "v${version}";
2019-12-09 17:31:37 +00:00
sha256 = "1d42dw4zrd7mzfqs6gwk27jj6lsh6pwv85p1ckx9dxy8mw3m52ah";
2019-11-10 14:46:15 +00:00
};
meta = with stdenv.lib; {
description = "Proof of work algorithm based on random code execution";
homepage = "https://github.com/tevador/RandomX";
2019-11-10 14:46:15 +00:00
license = licenses.bsd3;
maintainers = with maintainers; [ rnhmjoj ];
platforms = platforms.unix;
};
}