nixpkgs/pkgs/development/libraries/zydis/default.nix

31 lines
611 B
Nix
Raw Normal View History

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