nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 29 lines 615 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6}: 7 8stdenv.mkDerivation (finalAttrs: { 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${finalAttrs.version}"; 18 sha256 = "sha256-dfImzwbEfJQcaPZCoWypHiI6dishVRdqS/r+n3tfjvM="; 19 }; 20 21 meta = { 22 description = "Proof of work algorithm based on random code execution"; 23 homepage = "https://github.com/tevador/RandomX"; 24 license = lib.licenses.bsd3; 25 maintainers = with lib.maintainers; [ rnhmjoj ]; 26 platforms = lib.platforms.unix; 27 }; 28 29})