summary refs log tree commit diff
path: root/pkgs/development/libraries/zydis/default.nix
blob: 9e6a8ba83e05c6bd637b25db7f26122a6309c0bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ lib, stdenv, fetchFromGitHub, cmake }:

stdenv.mkDerivation rec {
  pname = "zydis";
  version = "3.2.0";

  src = fetchFromGitHub {
    owner = "zyantific";
    repo = "zydis";
    rev = "bfee99f49274a0eec3ffea16ede3a5bda9cda88f";
    sha256 = "sha256-y+zPeQyHBLQpJv5pHSAvpIy3mafi9pbj/6BZPwa7VHQ=";
    fetchSubmodules = true;
  };

  nativeBuildInputs = [ cmake ];

  meta = with lib; {
    description = "Fast and lightweight x86/x86-64 disassembler library";
    license = licenses.mit;
    maintainers = [ maintainers.jbcrail ];
    platforms = platforms.all;
  };
}