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