mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
43 lines
985 B
Nix
43 lines
985 B
Nix
{
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
ninja,
|
|
lib,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "asmjit";
|
|
version = "0-unstable-2026-03-26";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "asmjit";
|
|
repo = "asmjit";
|
|
rev = "0bd5787b54b575ed94bf32ac452153b34385c514";
|
|
hash = "sha256-mBnpoTG2c6RrTjOYSIeIANQKE6Uvd3/dnBGDnw3AfSA=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
ninja
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
|
|
|
|
meta = {
|
|
description = "Machine code generation for C++";
|
|
longDescription = ''
|
|
AsmJit is a lightweight library for machine code generation written in
|
|
C++ language. It can generate machine code for X86, X86_64, and AArch64
|
|
architectures and supports baseline instructions and all recent
|
|
extensions.
|
|
'';
|
|
homepage = "https://asmjit.com/";
|
|
license = lib.licenses.zlib;
|
|
maintainers = with lib.maintainers; [ thillux ];
|
|
};
|
|
}
|