2021-11-26 21:37:03 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
}:
|
2021-01-24 04:33:12 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "zydis";
|
2021-11-26 21:37:03 +00:00
|
|
|
version = "3.2.1";
|
2021-01-24 04:33:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zyantific";
|
|
|
|
repo = "zydis";
|
2021-11-07 17:34:34 +00:00
|
|
|
rev = "v${version}";
|
2021-01-24 04:33:12 +00:00
|
|
|
fetchSubmodules = true;
|
2021-11-26 21:37:03 +00:00
|
|
|
sha256 = "sha256-FB7hGQ9vI3ZE376iROEpdtZm91IiccBhtAFa94JgnUY=";
|
2021-01-24 04:33:12 +00:00
|
|
|
};
|
|
|
|
|
2021-11-27 12:57:13 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
2021-01-24 04:33:12 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-11-26 21:37:03 +00:00
|
|
|
homepage = "https://zydis.re/";
|
2021-01-24 04:33:12 +00:00
|
|
|
description = "Fast and lightweight x86/x86-64 disassembler library";
|
|
|
|
license = licenses.mit;
|
2021-11-27 12:57:13 +00:00
|
|
|
maintainers = with maintainers; [ jbcrail AndersonTorres ];
|
2021-01-24 04:33:12 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|