Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, fetchFromGitHub 3, cmake 4, ninja 5, lib 6}: 7 8stdenv.mkDerivation { 9 pname = "asmjit"; 10 version = "unstable-2022-11-10"; 11 12 src = fetchFromGitHub { 13 owner = "asmjit"; 14 repo = "asmjit"; 15 rev = "0c03ed2f7497441ac0de232bda2e6b8cc041b2dc"; 16 hash = "sha256-CfTtdgb+ZCLHwCRa+t2O4CG9rhHgqPLcfHDqLBvI9Tg="; 17 }; 18 19 nativeBuildInputs = [ 20 cmake 21 ninja 22 ]; 23 24 strictDeps = true; 25 26 meta = with lib; { 27 description = "Machine code generation for C++"; 28 longDescription = '' 29 AsmJit is a lightweight library for machine code generation written in 30 C++ language. It can generate machine code for X86, X86_64, and AArch64 31 architectures and supports baseline instructions and all recent 32 extensions. 33 ''; 34 homepage = "https://asmjit.com/"; 35 license = licenses.zlib; 36 maintainers = with maintainers; [ nikstur ]; 37 }; 38}