2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
}:
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "zydis";
|
2022-12-02 08:20:57 +00:00
|
|
|
version = "4.0.0";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zyantific";
|
|
|
|
repo = "zydis";
|
2021-12-06 16:07:01 +00:00
|
|
|
rev = "v${version}";
|
2021-02-05 17:12:51 +00:00
|
|
|
fetchSubmodules = true;
|
2022-12-02 08:20:57 +00:00
|
|
|
sha256 = "sha256-WSBi8HUVj/JR0/0pBoEaUKD0kOk41gSW5ZW74fn8b4k=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "https://zydis.re/";
|
2021-02-05 17:12:51 +00:00
|
|
|
description = "Fast and lightweight x86/x86-64 disassembler library";
|
|
|
|
license = licenses.mit;
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ jbcrail AndersonTorres ];
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|