mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-16 12:20:10 +00:00
30 lines
615 B
Nix
30 lines
615 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "randomX";
|
|
version = "1.2.2";
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tevador";
|
|
repo = "randomX";
|
|
rev = "v${finalAttrs.version}";
|
|
sha256 = "sha256-15hRPPEo48SL09gYpGtdpXqsVlOTQuMRn4AoXQJWEMI=";
|
|
};
|
|
|
|
meta = {
|
|
description = "Proof of work algorithm based on random code execution";
|
|
homepage = "https://github.com/tevador/RandomX";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ rnhmjoj ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
|
|
})
|