nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 48 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 callPackage, 6 cmake, 7 python3, 8}: 9 10let 11 zycore = callPackage ./zycore.nix { 12 inherit stdenv fetchFromGitHub cmake; 13 }; 14in 15stdenv.mkDerivation rec { 16 pname = "zydis"; 17 version = "4.1.1"; 18 19 src = fetchFromGitHub { 20 owner = "zyantific"; 21 repo = "zydis"; 22 rev = "v${version}"; 23 hash = "sha256-6J4pTUm3xQXwlQNBldjXVWRcse+auSFJtxGWaPRVzLg="; 24 }; 25 26 nativeBuildInputs = [ cmake ]; 27 propagatedBuildInputs = [ zycore ]; 28 cmakeFlags = [ 29 "-DCMAKE_INSTALL_LIBDIR=lib" 30 "-DCMAKE_INSTALL_INCLUDEDIR=include" 31 ]; 32 33 doCheck = true; 34 nativeCheckInputs = [ python3 ]; 35 passthru = { inherit zycore; }; 36 37 meta = { 38 homepage = "https://zydis.re/"; 39 changelog = "https://github.com/zyantific/zydis/releases/tag/v${version}"; 40 description = "Fast and lightweight x86/x86-64 disassembler library"; 41 license = lib.licenses.mit; 42 maintainers = with lib.maintainers; [ 43 jbcrail 44 athre0z 45 ]; 46 platforms = lib.platforms.all; 47 }; 48}