nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 29 lines 592 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "randomX"; 10 version = "1.2.1"; 11 12 nativeBuildInputs = [ cmake ]; 13 14 src = fetchFromGitHub { 15 owner = "tevador"; 16 repo = "randomX"; 17 rev = "v${version}"; 18 sha256 = "sha256-dfImzwbEfJQcaPZCoWypHiI6dishVRdqS/r+n3tfjvM="; 19 }; 20 21 meta = with lib; { 22 description = "Proof of work algorithm based on random code execution"; 23 homepage = "https://github.com/tevador/RandomX"; 24 license = licenses.bsd3; 25 maintainers = with maintainers; [ rnhmjoj ]; 26 platforms = platforms.unix; 27 }; 28 29}