at 24.05-pre 38 lines 871 B view raw
1{ stdenv 2, fetchFromGitHub 3, cmake 4, ninja 5, lib 6}: 7 8stdenv.mkDerivation { 9 pname = "asmjit"; 10 version = "unstable-2023-04-28"; 11 12 src = fetchFromGitHub { 13 owner = "asmjit"; 14 repo = "asmjit"; 15 rev = "3577608cab0bc509f856ebf6e41b2f9d9f71acc4"; 16 hash = "sha256-EIfSruaM2Z64XOYAeEaf/wFy6/7UO6Sth487R1Q0yhI="; 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}