about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorRyan Lahfa <ryan.lahfa@ens.fr>2022-11-24 15:57:53 +0000
committerGitHub <noreply@github.com>2022-11-24 15:57:53 +0000
commit2815fb279a59ab43d7d169f20a27cabe251b80da (patch)
tree2cdaef779ee2421cbb1f7c6110a81cd863a652e8 /pkgs
parent47533b85afa47af36ce4eb2ad8a44d1d8d35ad72 (diff)
parentbb4677b80c5c07da7324436c1f045e9b93bc7375 (diff)
Merge pull request #201613 from nikstur/asmjit
asmjit: init at unstable-2022-11-10

Merged on a boat.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/asmjit/default.nix38
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/development/libraries/asmjit/default.nix b/pkgs/development/libraries/asmjit/default.nix
new file mode 100644
index 0000000000000..9f4bd193b82c3
--- /dev/null
+++ b/pkgs/development/libraries/asmjit/default.nix
@@ -0,0 +1,38 @@
+{ stdenv
+, fetchFromGitHub
+, cmake
+, ninja
+, lib
+}:
+
+stdenv.mkDerivation {
+  name = "asmjit";
+  version = "unstable-2022-11-10";
+
+  src = fetchFromGitHub {
+    owner = "asmjit";
+    repo = "asmjit";
+    rev = "0c03ed2f7497441ac0de232bda2e6b8cc041b2dc";
+    hash = "sha256-CfTtdgb+ZCLHwCRa+t2O4CG9rhHgqPLcfHDqLBvI9Tg=";
+  };
+
+  nativeBuildInputs = [
+    cmake
+    ninja
+  ];
+
+  strictDeps = true;
+
+  meta = with lib; {
+    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 = licenses.zlib;
+    maintainers = with maintainers; [ nikstur ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 72258427e7841..af09447094c10 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -18214,6 +18214,8 @@ with pkgs;
   asio_1_10 = callPackage ../development/libraries/asio/1.10.nix { };
   asio = callPackage ../development/libraries/asio { };
 
+  asmjit = callPackage ../development/libraries/asmjit { };
+
   aspell = callPackage ../development/libraries/aspell { };
 
   aspellDicts = recurseIntoAttrs (callPackages ../development/libraries/aspell/dictionaries.nix {});